Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Changing the Default Destination

When you print a file, SAS looks in the following locations to determine where to send output:

  1. the destination specified in the form or host printer device that you are using. See UNIX Print File Parameters and Specifying Your Default Printer Device for more information.

  2. the value specified in the SYSPRINT system option. You can use the SYSPRINT option to set your default print destination. Use the SYSPRINT system option to specify the destination option that is used with your print command. For example, if your print command is lp, you can set the default destination to the printer named myljet by entering the following OPTIONS statement:
    options sysprint='-dmyljet';

    Note:   The setting of the SYSPRINT option will be ignored if you print with a form for which any changes have been made to the default Print File Parameters frame. See UNIX Print File Parameters for more information.  [cautionend]

  3. the value of the $LPDEST environment variable. See Defining Environment Variables for more information.

SAS uses the first destination that it finds. If you specify a destination in all three locations, SAS uses the destination specified in the form that you are using.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.