Chapter Contents |
Previous |
Next |
PRINTTO |
Language element: | procedure |
OpenVMS specifics: | valid values for file-specification; UNIT= option |
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 SAS Procedures
Guide.
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 or tape.
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 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.