I am currently using SCO Unix 5.0.4 and developing software with Microfocus
Cobol. All of my files reference the environment variables as shown below:
Source Code (Printer output)
SELECT PRNT ASSIGN TO PRNTDEV
ORGANIZATION SEQUENTIAL
ACCESS SEQUENTIAL
STATUS PRNT-STAT.
Shell variable assigned
PRNTDEV=/dev/lp0;export PRNTDEV
In the program, I write each line to the printer.
Ex: WRITE PRNT-REC FROM REPORT-LN1 AFTER 1 LINE.
I would like to change the shell variable in order to print to the spooler
(lp) as apposed to my current method of sending data directly to the device.
Could anyone shine some light on a way to do this. I have tried PRINTDEV=lp
along with trying to pipe the output into the spooler but I haven't had any
success.
Thanks.