Chapter Contents |
Previous |
Next |
SAS Companion for the CMS Environment |
Using the FILE Command |
file 'logout saslog b'
If the file already exists, a requestor window asks you whether you want to replace it or to append data to the existing file.
Using the PRTFILE and PRINT Commands |
Normally, the PRINT command is used to send the contents of a window to the printer. When you use the PRINT command, the default destination is controlled by the FORM subsystem. One way to override the default print destination that is established by the FORM subsystem is to use the PRTFILE command.
For example, to route the contents of your Output window to the file 'MYFILE OUTPUT C', you enter the following command from the Output window command line:
prtfile 'myfile output c'
This directs the output from the PRINT command to the external file 'MYFILE OUTPUT C'. Then, you enter the following command from the command line of the Output window:
If the file already exists, you are asked if you want to append to or replace the data in the file or cancel the PRINT command. Then, if you actually want to print the file, you enter the following command from the command line:
free
Note: Using the PRTFILE and PRINT commands results in
files with carriage returns if you are using the default form for carriage
control in the FORM subsystem. See Writing to External Files for more information about writing to print
files and nonprint files. Modifying the defaults in the FORM subsystem is
discussed in Modifying Your Default Form
.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.