![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for the CMS Environment |
| Using the PRINT Command and the FORM Subsystem |
The default printer--as well as other aspects of your output such as printer margins, printer control language, and font control information--are controlled by the FORM subsystem. The FORM subsystem consists of six frames that are used to define a form for each printer that is available to you at your site. You can also define multiple forms for the same printer. (See Adding a Form.) Your SAS Support Consultant can give you information about your default form and about any other forms that have been defined at your site.
The following sections describe how to modify your default
printer form.
print form=myoutput
cat sasuser.profilefrom the command line to display the CATALOG window.
copyitem sashelp.base.default.form sasuser.profile.default.form
fsforms sasuser.profile.default from the command line to display your
default form.
NEXTSCR command to
scroll to the next FORM frame, and issue the
PREVSCR command to scroll to the previous frame. Two of these frames,
the Print File Parameters frames, are used to specify host-specific printer
information; they are described in Host-Specific Frames of the FORM Subsystem.
END command to save your changes.
You can add additional printer forms to the FORM subsystem. These forms can then be used with the PRINT command, as described in Specifying a Form , and they can be modified in the same manner as described in Modifying Your Default Form . For example, to create a form named MYOUTPUT, do the following:
fsforms myoutput from the
command line.
NEXTSCR and
PREVSCR commands to scroll through the other frames of the FORM subsystem.
Use these other frames to provide additional information that will be associated
with the MYOUTPUT form.
END command to save your
changes.
| Using the PRINTTO Procedure |
filename outlist printer; proc printto print=outlist;
| Using the PRTFILE and PRINT Commands |
You can also use the PRTFILE command, followed by the PRINT command, to print the contents of SAS windows. PRTFILE establishes the destination, and PRINT sends the contents of the window to that destination. If you don't specify a destination with the PRTFILE command, PRINT automatically sends the window contents to your default printer. (See Using the PRINT Command and the FORM Subsystem for details about using the PRINT command alone.)
Follow these steps to print the contents of one or more windows to your default printer:
filename myrpt;
prtfile myrpt
A in the requestor window to append the window contents to the destination
file.
filename myrpt clear;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.