signon p1 sascmd='!sascmd' wait=no signonwait=no;
rsubmit p1 wait=no ;
filename outp namepipe '\\.\PIPE\pipe1';
proc printto print=outp;
proc printto print=print;
signon p2 sascmd='!sascmd';
options source source2;
filename inp namepipe "\\.\PIPE\pipe1" client;
length line $256;
input line $;
proc print data=retrieved;
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 . . .
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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.