Hi Steve,
I use the following script; Its not very pretty, but It works for me.
---------------------------------------------------------------------------
-------------------------
!setvar select 'jobnum=#J!hpjobnum and filedes="$stdlist" and
state="create"'
!listspf @;seleq=[!select] > $newpass
!print $oldpass,,4,4 > $newpass
!input buf < $oldpass
!setvar spfnum (word(buf)-"#")+".out.hpspool"
!file mystdlst=!spfnum,old;acc=append;shr
!echo line 1 >> *mystdlist
!echo line 2 >> *mystdlist
!echo line 3 >> *mystdlist
---------------------------------------------------------------------------
--------------------------
Tad.
[log in to unmask] on 08/01/99 21:32:50
Please respond to [log in to unmask]
To: [log in to unmask]
cc: (bcc: Tad BOCHAN/Securities_Services/FR/PARIBAS)
Subject: ">" redirection to a Spoolfile
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
-----------------------------------------------------------------------------
This message is confidential; its contents do not constitute a
commitment by Paribas except where provided for in a written agreement
between you and Paribas. Any unauthorised disclosure, use or
dissemination, either whole or partial, is prohibited. If you are not
the intended recipient of the message, please notify the sender
immediately.
Ce message est confidentiel ; son contenu ne représente en aucun cas un
engagement de la part de Paribas sous réserve de tout accord conclu par
écrit entre vous et Paribas. Toute publication, utilisation ou
diffusion, même partielle, doit être autorisée préalablement. Si vous
n'êtes pas destinataire de ce message, merci d'en avertir immédiatement
l'expéditeur.
|