Some have mentioned remote output queues - it is really a very simple matter - just be sure that your remote OUTQ does not use host print transform. Point it at an OUTQ on the target box, and ba-da-bing you are done. It's an exact copy of the original one. Also, if you want to preserve the spooled files on the source box, be sure to use SAVE(*YES) in the CHGSPLFA command where you change the OUTQ.

Once you set this up, you can simply use opt 2 of WRKSPLF or WRKOUTQ with OUTQ(XFR) SAVE(*YES) on the command line. Or use the QUSLSPL API - I think that's it - which gives you a list that you can loop through.

Did I say it is so amazingly easy?!!!


Alan Shore wrote:
Hi everyone

Due to a system crash, we are now working off our DR system and we are
looking to go back to using the production system this weekend.
Its been many winters have passed since I last replicated spool files from
one AS/400 to another
The procedure that I last used was as follows (with thanks to Tim Granatir, expert):-

On AS/400 that contains the spool file:
Step 1. Create a physical file that is at least 1
character bigger than the size of the spool file
you wish to replicate.
Step 2. Copy the spool file into your database
file. Make sure you specify *FCFC for the control
character parameter.
Step 3. Transfer this database file to your
target AS/400 using whatever method you choose
(FTP, File Transfer, etc.).

On AS/400 that you wish to print:

Step 4. Override print file to specify control
character *FCFC.
Step 5. Copy your database file to the spool

Your print file is now duplicated on your target

Example Commands:

(123456/*N/QPADEV0032) CTLCHAR(*FCFC)

Transfer FILE133 in library MYLIB to your target


However, we may have a LARGE number of these spoolf files to migrate
We are presently on V5r4.
Is there a simpler and/or more automated method to achieve this?
Or do I have to cut and paste the spool file attributes (Job, User, Number,
File and Number) of each and every spool file that needs to be migrated

Thanks in advance

Alan Shore
Programmer/Analyst, Distribution
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].