Procedures under OpenVMS |
OpenVMS specifics: | valid values for file-specification; UNIT= option |
See: | PRINTTO Procedure in Base SAS Procedures Guide |
Syntax |
PROC PRINTTO <option(s)> |
Note: This is a simplified version of the PRINTTO procedure syntax. For the complete syntax and its explanation, see the PRINTTO procedure in Base SAS Procedures Guide.
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an OpenVMS logical name as the destination for the log output.
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an OpenVMS logical name as the destination for procedure output. FILE= and NAME= are valid aliases for this option.
sends output to the file FTnnF001.LIS, where nn represents the UNIT= value, which can range from 1 to 99.
Details |
The PRINTTO procedure defines destinations for SAS procedure output and for the SAS log.
To send output directly to a printer, use a FILENAME statement with the PRINTER device-type keyword. This sends the output to the default SYS$PRINT queue. If you want to override the default queue, use the QUEUE= option in the FILENAME statement to specify a different queue.
Note: You cannot send the output directly to a member of a text library or to a remote node.
Examples |
The following statements send any SAS log entries that are generated after the RUN statement to the external file that is associated with the fileref MYFILE:
filename myfile '[mydir]mylog.log'; proc printto log=myfile; run;
The following statements send the procedure output from the CONTENTS procedure (and any other subsequent procedure output from the SAS session) to the external file that is associated with the OpenVMS logical name OUTPUT:
x 'define output [mydir]proc1.lis'; proc printto print=output; run; proc contents data=oranges; run;
The following statements send the procedure output from the CONTENTS procedure directly to the system printer:
filename myfile printer '[mydir]proc2.lis'; proc printto print=myfile; run; proc contents data=oranges; run;
The following statements (a PROC PRINTTO statement with no options) redirect the SAS log and procedure output to the original default destinations:
proc printto; run;
The following statements send any procedure output to a file named MYPRINT.DAT:
proc printto print=myprint; run;
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.