SAS Life Science Analytics Framework and the clinical data products from SAS

How can Proc Printto be used within the Process Editor

Reply
SAS Employee
Posts: 11

How can Proc Printto be used within the Process Editor

You can use proc printto by either using an output file parameter or a webdav filename.  Here are instructions and examples.

1.   You can parameterize the output  (or log file) as an output file parameter …

If you use an Output file parameter the following syntax is used:

proc
printto log=&outlog;

run;

Note:  no filename statement is needed and define outlog as an output file.

To reset it back to the PE's default you must have the following statement:

proc printto log=_ibxlog_;

run;

(instead of log=log).

Same applies if you want to change the output location. (reset to _ibxout_)

Example

data new;

set &data;

run;

proc printto log=&outlog;

proc printto print=&outlist; 

proc print data=new;

var subjid age;

title "proc printto example";

run;

/reset back to default*/

proc printto log=_ibxlog_;

proc printto print=_ibxout_;

run;

2.  You can use the webdav filename  statement:

If you use a webdav filename then the syntax is the same as what you would do in PC SAS or any regular SAS session.

Example:

data a2;

a = 3000;

b = 33000;

output;

return;

run;

filename foo webdav
'https://sddtrain.sas.com/webdav/Testing Area/nacole/rawFile.txt'

user=”&_SDDUSR_”  pw=”&_SDDPW_”; 

proc printto print=foo;

proc print data=a2; run;

Note:  In earlier releases of SAS, the keyword “sasxbamw” may need to be used instead of webdav on the filename statement.

Ask a Question
Discussion stats
  • 0 replies
  • 319 views
  • 0 likes
  • 1 in conversation