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