Defines destinations for SAS procedure output and for the SAS log
| Language element: |
procedure
|
| OpenVMS specifics: |
valid values for file-specification; UNIT= option
|
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.
-
option(s)
-
-
FILE=file-specification
-
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an
OpenVMS logical name. This is an alias for the PRINT=
option.
-
LOG=file-specification
-
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an
OpenVMS logical name.
-
NAME=file-specification
-
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an
OpenVMS logical name. This is an alias for the PRINT= option.
-
PRINT=file-specification
-
specifies a fileref, a fully qualified OpenVMS pathname (in quotation marks), or an
OpenVMS logical name.
-
UNIT=nn
-
sends output to the file FTnn F001.LIS, where nn represents the UNIT= value, which can range from 1 to
99.
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.
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;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.