For more information,
see Examples of FILENAME Statements Using PRINTER and PIPE .
|
||
Issue the PRTFILE command
as described in Specifying the Print File. Specify the fileref from your FILENAME statement or FILENAME
function.
|
||
filename myrpt printer 'bldga2 -n2';(See the documentation for your print command for information about other options that you can specify.)
lp
command
on the printer named myljet: filename ascout pipe 'lp -dmyljet';
lp
command and redirects
any error messages produced by this command to the LpError file in
your home directory: filename myrpt pipe 'lp 2>$HOME/lperror';
/u/myid/log/app1
, issue the following command on the
command line of the Log window: file '/u/myid/log/app1'