Reader Kim Egekjaer offers this tip for making it a little easier to handle copying spool files from one place to another.
You may know that you can copy a spool file with the command SNDSPLF (Send Spooled file). But there are problems using this method because it requires that there be a user profile to send to. That user has to be added to the directory entry, and the output queue of the user profile has to be an output queue that you can use. Finally, just to make matters a bit worse, the owner of the copied spool file will not be the same as the original user: It will be the user to whom you send the spool file.
You can avoid all these difficulties by using the command SNDTCPSPLF for copying a spool file on an AS/400.
SNDTCPSPLF RMTSYS(*INTNETADR) INTNETADR('22.214.171.124')
FILE(QSYSPRT) JOB(074955/KSE/QPRTJOB) SPLNBR(13)
(The INTNETADR parameter is the IP address of the receiving AS/400. The FILE, JOB and SPLNBR parameters specify the spool file to be sent).
If you have added your local AS/400 in the TCP/IP host table, you can state this name in the RMTSYS-parameter. (The TCP/IP host table can be updated by this command: GO CFGTCP and choose '10. Work with TCP/IP host table entries'.)
You could also make this copying run automatically:
CRTOUTQ OUTQ(QUSRSYS/COPY_IN) RMTSYS(AS400name) RMTPRTQ(QUSRSYS/COPY_OUT) CNNTYPE(*IP) TRANSFORM(*NO) DESTTYPE(*OS400)
Now new spool files arriving at the COPY_IN output queue will automatically be sent to the COPY_OUT output queue.
But make sure that the incoming spool files have the attribute SAVE(*YES). If they don't, they will disappear from the COPY_IN queue."
About the author: Kim Egekjaer is a product specialist at LCI Intermate in Denmark. He has worked on AS/400 for six years as well as on technical support of the forms solution, InterForm400 (ArtForm400 in the US). LCI Intermate is also a manufacturer of printer connectivity solutions.
From Greg Hintermeister:
There's another, much simpler way to do it: Open Operations Navigator, find your spooled file, and drag it to where you want it to be. Simple.
From Shelley Cole: