Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Changing the Default Print Command

Under UNIX, the FORM subsystem uses lp as the default print command. You can use the PRINTCMD system option to specify a different print command. For example, you can change your default print command to lpr by entering the following OPTIONS statement:

options printcmd='lpr';
For more information, see PRINTCMD.

Alternatively, you can create an alias of your system's print command. Files will be directed to the command referenced by the alias and will be passed the lp print options from the Print File Parameter frame. For example, if your system uses the C shell and a print command called nlp, you can add the following to your .cshrc file:

alias lp 'nlp'
From a Bourne or Korn shell, you can create a symbolic link to your system's print command, as in the following example:
ln -s /usr/local/bin/nlp $HOME/bin/lp


Chapter Contents

Previous

Next

Top of Page

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