Capturing the spool file may prove useful in the analysis and troubleshooting of print errors and anomalies in AS400 and other system environments.
You may be requested to provide a SAVF file for diagnostic purposes. This file must be captured if a valid network trace is not possible, or if the problem is observed when printing from the host only. Click here for an additional reference.
What you will need
A PC attached to the same network as the AS/400
Creating a new ‘OUTQ’
On the PC, open IBM System i Address for Windows.
At the location of where the spool file is to be exported, start a session with the AS/400 server.
Create new OUTQ where you will store the spool file(s) to be exported.
To do this, enter the command crtoutq outq <library_name/outq_name> to create the OUTQ.
Storing spool file(s) in new ‘OUTQ’
Open the OUTQ where the spool file(s) are located. To do this, use the command wrtoutq <name of source OUTQ>.
In the OUTQ, identify the spool file(s) to be exported, enter the "Change" option "2", and then press Enter. Press F11 to display the parameter shortnames for easier searching.
Locate the OUTQ parameter by pressing PAGE DOWN to view additional (More...) parameters.
Remove the existing OUTQ name and replace it with the OUTQ name created in Step 1 above, and then press Enter.
Repeat this process for each of the spool files in question.
Creating the save file ‘SAVF’
Before proceeding, you can make sure your OUTQ contains the correct spool files by using the workout <name of OUTQ> command. Review the list of spool files and then proceed to this next step.
Note: Make sure that any spool files containing non-standard custom files are also exported along with your spool files. This may include files such as user-defined objects or libraries.
From the session main menu screen, enter the command crtsavf file <library_name/SAVF_name>.
Save the OUTQ to the SAVF using the SAVOBJ command. Enter SAVOBJ on the command line and press Enter.
Within the Save Object, you will need to input the following parameters:
|Save Object (SAVOBJ)
Current Library where OUTQ is stored
Name of SAVF and Destination Library
Target Release *CURRENT is the default for version iSeries V6R1; if a higher version is at issue, enter V6R1 as the target.
Continued.... Press F10 to display the remaining parameters and then press PAGE DOWN to view the next screen.
*ALL to capture all spooled files inside the OUTQ
Spool file data...
Press Enter to execute the SAVOBJ command. The entire command is as follows: savobj obj<name_of_outq> lib<lib_of_outq>dev <*savf>objtype<*outq> savf<name of savf> splfdta<*all>
Verifying the stored spool file in the SAVF
Type dspsavf file (<lib where savf is saved>/name of savf>); e.g., DSPSAVE FILE(QGPL/TRANSIT)
You should now see the OUTQ components: Library saved, the Object Name, File Size, and Data (Yes).
Type (Enter) "5" to display the contents of the OUTQ saved in the SAVF.
The screen should display the spool files saved in the OUTQ and corresponding SAVF.
Note: If this list is empty, you will need to repeat the previous procedure ‑ Creating the save file ‘SAVF’
Exporting the ‘SAVF’ to a Windows PC
From the Windows PC, open a command prompt: (Start > Run, enter cmd, and then press Enter).
Navigate to the drive letter or directory where the SAVF file will be saved. Use any combination of cd, <driver letter:>, or other commands.
Type ftp <iSeries_ IP_address>, where address is the IP address of the iSeries (AS/400) server.
Enter User name and Password if necessary, and press Enter after entering each credential.
Type bin and then press Enter to put ftp session into binary mode.
Use the cd command to change to the directory where the SAVF file is saved.
Enter the command recv<name of SAVF in AS/400>.savf <name of SAVF to be saved in PC>.savf
If you have successfully exported the SAVF file onto the PC, you can now e-mail the exported SAVF file to Lexmark Technical Support for further evaluation.
- Click here for the English Only (.PDF) version of this procedure.
LEGACY ID: HO3728