|Date: ||Tue, 12 Feb 2002 14:45:21 -0500|
|Reply-To: ||"Farrer, Andrew" <Andrew.Farrer@CIBC.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Farrer, Andrew" <Andrew.Farrer@CIBC.COM>|
|Subject: ||Re: SASLIST & rsh|
|Content-Type: ||text/plain; charset="iso-8859-1"|
You could try a combination of filename fileref ftp & proc printto log =
It works but proc printto does not always close cleanly so be warned if you
want to append further output to the same fileref once printto is done.
A more reliable but less elegant 2-step approach is:
//SASLOG DD SYSOUT=*
//SASLIST DD DSN=HLQ.UID.SASLIST,DISP=(NEW,CATLG,DELETE),etc.
//SASLST2 DD DSN=HLQ.UID.SASLST2,DISP=(NEW,CATLG,DELETE),etc.
//SYSIN DD *
sas statements ;
/* Start re-routing output */
proc printto print = saslst2 ; run ;
proc print ;
proc printto ; run ; /* Revert to default SASLIST */
more sas statements ;
//FTPSTEP EXEC PGM=FTP,COND=(0,NE)
//SYSIN DD *
put 'HLQ.UID.SASLST2' saslist.txt
I have not tested this exact code but you should get the idea.
From: JOHN ENEVOLDSON [mailto:JOHN.ENEVOLDSON@ELLOS.SE]
Sent: Monday, February 11, 2002 2:00 PM
Subject: SASLIST & rsh
--- Received from ELLS.JNE +46 33 160443 02-02-11 20.00
We currently run SAS on a Unix box, and trigger jobs from an
MVS system via rsh. The SASlog is directed back to MVS via
stdout. However, we would like to be able to use PROC PRINTTO
or SASLIST and thus seperate report output from the saslog (
directing it to a different DD statement in the MVS job), but
have not been able to figure out a way to do it. Has anyone
any ideas ?
Thanks in advance.