Creating and exporting a Spool File from AS/400 to a Windows PC
How to Create and Export a Spool File from AS/400 to a Windows PC; Output file not accurate; Anomalies; Formatting; Inaccurate fonts; Incorrect fonts; Spacing; Indents
Overview
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
- AS/400
- A PC attached to the same network as the AS/400
Creating a new ‘OUTQ’
- On the PC, openIBM 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 willstorethe 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 commandwrtoutq<name of source OUTQ>.
- In the OUTQ, identify the spool file(s) to be exported, enter the "Change" option "2", and then pressEnter. PressF11to display the parameter shortnames for easier searching.
- Locate the OUTQ parameterby pressingPAGE DOWNto view additional (More...) parameters.
- Remove the existing OUTQ name and replace it with the OUTQ name created inStep 1above, and then pressEnter.
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. 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 commandcrtsavf file<library_name/SAVF_name>.
- Save the OUTQ to the SAVF using theSAVOBJcommand. EnterSAVOBJon the command line and pressEnter.
- Within theSave Object, you will need to input the following parameters:Save Object (SAVOBJ)InputNext toAbbreviationValueOUTQnamefromObjects...OBJTRANSIT(Example)Current Library where OUTQ is storedLibrary...LIBQGPL(Example)*SAVFDevice...DEV*SAVF*OUTQObject type...OBJTYPE*OUTQName of SAVFand DestinationLibrarySave file....Library....SAVFTRANSIT(Example)*LIBL(Example)Target Release*CURRENTis the default for version iSeries V6R1; if a higher version is at issue, enterV6R1as the target.Target...TGTRLS*CURRENTContinued.... Press F10to display the remaining parameters and then pressPAGE DOWNto view the next screen.*ALLto capture all spooled files inside the OUTQSpool file data...SPLFDTA*ALL
- PressEnterto execute theSAVOBJcommand. 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
- Typedspsavf 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.
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, entercmd, and then pressEnter).
- Navigate to the drive letter or directory where theSAVFfile will be saved. Use any combination ofcd, <driver letter:>, orothercommands.
- Typeftp<iSeries_ IP_address>, whereaddressis the IP address of the iSeries (AS/400) server.
- EnterUser nameandPasswordif necessary, and pressEnterafter entering each credential.
- Typebinand then pressEnterto put ftp session into binary mode.
- Use thecdcommand to change to the directory where the SAVF file is saved.
- Enter the commandrecv<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.
Additional information
- Click here for the English Only (.PDF) version of this procedure.
LEGACY ID:
HO3728