IBM Support

Migrate Spooled Files to Another System

Troubleshooting


Problem

This document contains the steps to migrate spooled files saved at V5R4 or higher to another system at V5R4 or higher.

Resolving The Problem

At V5R4 and later, spooled files can be saved with the *OUTQ objects when the parameter SPLFDTA(*ALL) is specified on the SAVLIB or SAVOBJ commands.

To save spooled files, perform a command similar to the following:

SAVOBJ OBJ(*ALL) LIB(LibraryA LibraryB LibraryC) DEV(device) OBJTYPE(*OUTQ) SPLFDTA(*ALL)

Notes:
1. When the SAVOBJ command is used, it is required to input the individual libraries because *ALL is not an option for the LIB parameter.
2. Specify TGTRLS(VxRxMx) appropriately, if the spooled files will be restored to a previous release than the system in which they are saved.
3. The following command can be used to display all libraries on the system:

DSPOBJD OBJ(*ALL/*ALL) OBJTYPE(*LIB) ASPDEV(*ALLAVL) OUTPUT(*OUTFILE)

To save spooled files as part of a library save, you should perform a command similar to the following:

SAVLIB LIB(*ALLUSR) DEV(device) SPLFDTA(*ALL)

Note: Individual libraries, generics, *NONSYS, *IBM and *ALLUSR can be specified for the LIB parameter when using the SAVLIB command.

To restore spooled files, perform a command similar to the following:

RSTOBJ OBJ(*ALL) SAVLIB(*ANY) DEV(device) OBJTYPE(*OUTQ) SPLFDTA(*NEW)

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000C4BAAU","label":"IBM i"},{"code":"a8m0z000000cwp6AAA","label":"Save Restore"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

594414992

Document Information

Modified date:
10 March 2025

UID

nas8N1011625