home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / bit / listserv / sasl / 3896 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.7 KB  |  58 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!auvm!CPMAIL-NZ.CIS.COLUMBIA.EDU!PASSRAY
  3. X-Mailer:     Pegasus Mail v2.3 (R3).
  4. Message-ID: <MAILQUEUE-101.920826112432.288@cpmail-nz.cis.columbia.edu>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Wed, 26 Aug 1992 11:24:32 EDT
  7. Reply-To:     Ray Pass <PASSRAY@CPMAIL-NZ.CIS.COLUMBIA.EDU>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         Ray Pass <PASSRAY@CPMAIL-NZ.CIS.COLUMBIA.EDU>
  10. Subject:      Re: task like PROC PRINT
  11. Comments: To: SAS-L@uga.cc.uga.edu
  12. Lines: 44
  13.  
  14. ON    Wed, 26 Aug 1992 13:27:44 EST
  15.       Anne Liang <GOVE036%TWNMOE10.BITNET@uga.cc.uga.edu>  WROTE:
  16.  
  17. > Hi, everyone
  18. >
  19. > I've got a dataset which contains more than 100 variales and about 100
  20. > observations. Now I want to output it to text file with every 5 varaibles
  21. > occupying the whole 80-column page, each with width 16. The output is
  22. > something like the one when we use PROC PRINT instead, varaible names
  23. > appearing on the first line. However, the output produced by simply
  24. > applying PROC PRINT is not neat enough.
  25. >
  26. > Can everyone see what I mean? I'm not sure it's clear enough but I've
  27. > done my best.
  28. >
  29. > What are the possible solutions? The procedure which mimics PROC PRINT
  30. > is much preferred. Thanks in advance.
  31. >
  32. > Anne Liang in Taipei Taiwan
  33. >
  34.  
  35. A picture would be worth a lot of words here, but I think I know what Anne
  36. wants.  One way to accomplish it would be to use PROC REPORT with the
  37. following options set on the PROC REPORT line: LS-80  COLWIDTH=16  SPACING=0.
  38. This would give a linesize of 80 cols and a default printing width for all
  39. columns of 16 with 0 columns of space between vars.  It could also be done
  40. with PROC PRINT if the vars are somehow FORMAT'ed with a length of 16, but
  41. that might require some extra, unnecessary, pre-processing however.  Page 1
  42. of the output would contain the first 50 or so obs of vars 1-5, page 2 would
  43. have vars 6-10 and so on until all vars were printed for the first set of
  44. obs.  Then the next set of obs would start.  PROC PRINT would allow you to
  45. print in the this order, or alternately, print all obs (vars 1-5) and then all
  46. obs (vars 6- 10) etc.  REPORT can't do this yet.  Have fun.
  47.  
  48. Ray
  49.  
  50.  
  51.  
  52.  *--------------------------------------------------------------------------*
  53.  | Ray Pass, Ph.D.                                    Voice: (212) 305-7748 |
  54.  | Columbia-Presbyterian Medical Center                 Fax: (212) 305-3302 |
  55.  | 161 Ft. Washington Ave.       AP1310                                     |
  56.  | New York, NY 10032-3784               passray@cpmail-nz.cis.columbia.edu |
  57.  *--------------------------------------------------------------------------*
  58.