I had a similar problem where I needed to both print a report and send it
via FTP. Normally, the application just wrote directly to the spooled
device.
I changed the file equate to send the output to a flat file, no
;ENV=parameter. I then set up a second file equate for the printer, with
the ;ENV= parameter (not always required) and :PRINTed the file to the
printer. Then, the file was still available to FTP or whatever:
!PURGE AS322an1.DATA;ONERROR=CONTINUE
!FILE RCTOUT=AS322an1.DATA,NEW;DEV=DISC;SAVE;CCTL
!IF "!HPSYSNAME" = "KAI950E" THEN
! FILE AS322an1;DEV=L198LD,10,1;ENV=LP198.KPENV.SYS;REC=-198,,F,ASCII;CCTL
!ELSE
! FILE AS322an1;DEV=LP,1,1;ENV=LP198.KPENV.SYS;REC=-198,,F,ASCII;CCTL
!ENDIF
-dtd
Jay Willis <[log in to unmask]>@RAVEN.UTC.EDU> on 04/16/2002
08:12:16 AM
Please respond to Jay Willis <[log in to unmask]>
Sent by: HP-3000 Systems Discussion <[log in to unmask]>
To: [log in to unmask]
cc:
Subject: [HP3000-L] Need to send a copy of a report to each of 2
printers
I just got a request to have a program produce two copies of a report,
one copy to each of two printers. This program will be run regularly, so
I want this in a job and don't want to have to go into Unispool to
fiddle with the spoolfiles. Any suggestions?
Jay <need to get back to my w-4 so i don't pay quite so much next year
:-(>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|