Sorry I didn't notice this till now, (one-man shop doing dozen-man work) but
if you CPYSPLF to CTLCHAR(*FCFC) I think there is a command to copy it right
back to a spool file.
I think I saw this somewhere after I already had written a program to use
CTLCHAR(*PRTCTL) to copy the spool file and then my own program to write it
back out to a printer file, so I've simply used what I have in place.
- Alan
----- Original Message -----
From: "SallyWhite" <
[email protected]>
To: <
[email protected]>
Sent: Monday, May 12, 2003 5:42 PM
Subject: Re: Copy Spool File to other Outq
solution helpful, and it would definitely be a time-saver over running the
same program 20 times to produce the report. You would run the JDE report
once, then use CPYSPLF to copy the report to a physical file w/
CTLCHAR(*FCFC), and then a brief RPG program can read the physical file and
perform proper paging, line spacing, etc. This is a 'generic' program,
because it will read any report format w/o needing changes. It is set up
for 132 or 198 character reports. I have a crude program that may need
modification, but would be happy to send to you if you would be interested.
You could then setup a mster CLP that would call the program 20 times, each
time pointing to a different OUTQ. Only thing I am not sure of is how to or
if you can create the report w/ a name other than the one you use in your
RPG program (i.e., if you use QPRINT as I do, how you could get it to create
a spool file named R04320, for ex!
can offer an idea how to do this.