Date: Fri, 28 Mar 2008 20:15:50 -0700
Reply-To: sbarry@SBBWORKS.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Scott Barry <sbarry@SBBWORKS.COM>
Organization: http://groups.google.com
Subject: Re: Direct Output
Content-Type: text/plain; charset=ISO-8859-1
On Mar 28, 4:07 pm, EVANTRA <EDMOND.VANBEB...@dts.ca.gov> wrote:
> Hi All...SAS newbie here.
>
> I would like my output directed to the outfile I have defined.
> Currently, it is going to job's SASLIST.
> Thanks for any help!
>
> //S02 EXEC PROC=SAS
> //WORK DD SPACE=(CYL,(150,150))
> //IN1 DD DSN=DCBE70.REPORTS.DCOLL1(+1),DISP=SHR
> //OUT DD DSN=DCBE70.REPORTS.DCOLL2(+1),
> // DISP=(,CATLG,DELETE),
> // UNIT=SYSDA,
> // SPACE=(CYL,(90,60),RLSE),
> // RECFM=FB,BLKSIZE=24000,LRECL=120
> //SYSIN DD *
> DATA RECORD;
> INFILE IN1;
> INPUT @37 FREEKB IB4. @45 TOTALKB IB4. ;
> PROC SUMMARY DATA=RECORD;
> VAR FREEKB TOTALKB;
> OUTPUT OUT=RESULTS SUM=TOTALKB FREEKB;
> PROC PRINT DATA=RESULTS;
In addition to PROC PRINTTO, consider looking at ODS as well -- lot's
of flexibility with output formats and content. The simplest would be
ODS LISTING FILE=filref; And to reset code ODS LISTING;
Scott Barry
SBBWorks, Inc.
|