signon p1 sascmd='!sascmd' wait=no signonwait=no;
rsubmit p1 wait=no ;
options source2;
filename outp namepipe '\\.\PIPE\pipe1';
...
proc printto print=outp;
...
proc printto print=print;
endrsubmit p1;
signon p2 sascmd='!sascmd';
rsubmit p2;
options source source2;
filename inp namepipe "\\.\PIPE\pipe1" client;
data retrieved;
length line $256;
infile inp;
input line $;
run;
quit;
proc print data=retrieved;
run;
quit;
endrsubmit p2;
signoff p1
signoff p2
You can exclude the output without using a NOPRINT which disables the Output Delivery System (ODS) by bracketing your code with the folllowing two statements:
ODS LISTING CLOSE;
. . . procedure code goes here . . .
ODS LISTING;
This is the "ODS way" to do a NOPRINT.
Furthermore, you can use an ODS OUTPUT statement to then output any portion of the output to a SAS data set. Look under the Details => ODS Table Names in the documentation for the correct tablename, e..g. - - http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_rreg_details...
The syntax for an ODS OUTPUT statement, for example is:
ODS OUTPUT GoodFit=GF;
where "GoodFit" is an ODS Table Name listing in the documentation and "GF" is a SAS data set name (your choice here). Then you can operate on the SAS data set "GF" just as you would any other SAS data set.
I hope that helps.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.