Yet Another Super-Easy Way to Copy a Spooled File from One Partition to Another
April 21, 2010 Hey, Ted
I saw the tip Another Super-Easy Way to Copy a Spooled File from One Machine to Another and wanted to add to the discussion.
In our shop, we have one machine with two partitions–one for production, one for testing and development. On the production system, we have a TEST outq. On the test system, we have a PROD outq. Sending spooled files from one machine to the other is a simple matter of using the CHGSPLF command (option 2 from panels that display spool files) to change the outq name. The CL we used to create the output queues is slightly different from what you published earlier.
Here’s the CL command to create the PROD outq on the TEST partition.
CRTOUTQ OUTQ(QGPL/PROD) + RMTSYS(
The token <prodsys> is where we put the name of our production system. The <lib> and <outq> tokens are the library and name of an outq on the remote system. The RMTPRTQ takes the qualified or unqualified name of the output queue on the remote system. The IP address is fictitious, of course.
Creating the TEST outq on the production system works the same way.
Thanks, Bob. I like simple things to make my life easier. If anybody has a DLTPPRWRK (Delete Paperwork) command, please send it my way.
Another Super-Easy Way to Copy a Spooled File from One Machine to Another