LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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.


Back to: Top of message | Previous page | Main SAS-L page