Submitted by Anonymous (not verified) on Mon, 03/19/2001 - 00:00
Forums

Is it possible to save and move a spooled file to another AS/400-system?

Full name
Administrator

admin

Mon, 03/19/2001 - 00:00

From InterForm’s servicemenu, version 99.01.M18. It is also possible with an older version or without InterForm by the following procedure:

On the source machine, create a physical file like this:

CRTPF FILE(QTEMP/QAZ) RCDLEN(202)
CPYSPLF FILE(QPRINT) TOFILE(QTEMP/QAZ) JOB(002572/QSECOFR/DSP01)
SPLNBR(2) CTLCHAR(*FCFC) 

NB: You can verify the attributes by looking in the spool file description
using option 8 on the WRKOUTQ screen.

Now save the file on tape or transfer to another media an ship it.
It is a good idea to save the print file along with it, as it might
contain some attributes which could be important to the result. In
this example we are working with QPRINT, which should be pretty much
alike on everyones machine.

On the target machine restore the file(s) and do the following: 

OVRPRTF FILE(QPRINT) CTLCHAR(*FCFC) OUTQ(APF3812/AFC_INPUT1)
CPYF FROMFILE(QTEMP/QAZ) TOFILE(QPRINT)