Subject: | |
From: | |
Reply To: | |
Date: | Wed, 13 Jan 1999 15:04:27 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Use the same idea as the temp file, but use a permanent file instead:
!file lp;dev=lp,1
!build <filename>
!file temp=<filename>,old;acc=append
!echo Line #1 > *temp
!echo line #2 >> *temp
!echo Line #n >> *temp
!print *temp > *lp
This way your data does not get hosed on job abort.
(This access is slower than using a temp file though.)
Hope it helps!
Curtis
Steven Bloom wrote in message <[log in to unmask]>...
Greetings,
I am trying to use "<" and ">" redirection to send information from a
job to a print file. I tried doing this:
!file lp;dev=lp,1
!
!echo This should be the first line > *lp
!echo This should be the second line >> *lp
!echo This should be the third line >> *lp
I would think that all of these would be written to a single spoolfile,
which would be closed at :EOJ.
Instead, each line opens a new Spoolfile.
I know that I could write all the data to a flat file and then print the
flat file. However, I'd rather not do that because if the job ABENDs,
no report will appear in the spooler.
Any ideas?
Steve
|
|
|