Copy Spool File to other Outq

mnarewec

Well Known Member
Is there a JDE subroutine that caters for copying Spool file of a particular OUTQ and place it in other outqueues???

Please help.. or should I code using IBM API..
 
Use the 400 command SNDNETSPLF (put a 1 beside any spoolfile). We
distribute reports that way often.



JDE World A7.3 11ish
 
Use the OS400 commands. Spoolfiles are spoolfiles, and are OS400 items.
 
Re: RE: Copy Spool File to other Outq

Don't know what you want to copy the splf to another out queue. You can simply change the out queue of splf to another and then save the splf so that the same splf can be print more than once. In this way, the same splf can be printed out through any out queue, and any times.
Regards
Yang XU
GSK China



Use the 400 command SNDNETSPLF (put a 1 beside any spoolfile). We
distribute reports that way often.
JDE World A7.3 11ish
--------------------------
To view this thread, visit the JDEList forum at:
http://www.jdelist.com/ubb/showflat.php?Cat=&Board=W&Number=54498
+ - - - - - - - - - - - - - - - - - - - - - - - -+
This is the JDEList World?nbsp;mailing list/forum.
Archives and information on how to SUBSCRIBE, and
UNSUBSCRIBE can be found on the JDEList Forum at
http://www.JDEList.com

JDEList is not affiliated with JDEdwards?/DIV>

+ - - - - - - - - - - - - - - - - - - - - - - - -+
 
All your suggestions are correct But the problem is we have night jobs which generate spool files which are same for all our companies. What we currently doing is running 1 night job for 1 company so that the spool file could go to individual company's outq that means say 20 night jobs producing same spool file going into 20 differen OUTQ. That's consuming a lot of resource wasted.

Anyway I figured out what to do. I will write a Utility that will called in the program to do that,

Cheers...
 
Here is more infor if you are planning on writing a program.....

You can create a Data Quere and attach it to the outq where you have the spool files generated. You can create a sub-system job where you monitor the Data Quere and distribute according to your rules. Another possibility is to you can attach a user define program to your OutQ to handle this.

Zack.
 
Based on your explanation of the company's need, you may find this 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 example, to match the JDE report name). Perhaps someone else on this list can offer an idea how to do this.
 
I am interested in seeing your Program. I would appreciate if you could send me.

I am working on using System APIs because I also want it to because a command where any body can use it.

Thanks all.
 
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.
 
Back
Top