Skip to Content Information Center
Lexmark MX822

Lexmark MX822

Creating and exporting a Spool File from AS/400 to a Windows PC

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

  1. AS/400

  2. A PC attached to the same network as the AS/400

Creating a new ‘OUTQ’

  1. On the PC, open IBM System i Address for Windows.

  2. At the location of where the spool file is to be exported, start a session with the AS/400 server.

  3. 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’

  1. Open the OUTQ where the spool file(s) are located. To do this, use the command wrtoutq <name of source OUTQ>.

  2. 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.

  3. Locate the OUTQ parameter by pressing PAGE DOWN to view additional (More...) parameters.

  4. 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.

  1. From the session main menu screen, enter the command crtsavf file <library_name/SAVF_name>.

  2. Save the OUTQ to the SAVF using the SAVOBJ command. Enter SAVOBJ on the command line and press Enter.

  3. Within the Save Object, you will need to input the following parameters:

    Save Object (SAVOBJ)
    InputNext toAbbreviationValue

    OUTQ namefrom

    Objects...

    OBJ

    TRANSIT (Example)

    Current Library where OUTQ is stored

    Library...

    LIB

    QGPL (Example)

    *SAVF

    Device...

    DEV

    *SAVF

    *OUTQ

    Object type...

    OBJTYPE

    *OUTQ

    Name of SAVF and Destination Library

    Save file....

    Library....

    SAVF

    TRANSIT (Example)

    *LIBL(Example)

    Target Release *CURRENT is the default for version iSeries V6R1; if a higher version is at issue, enter V6R1 as the target.

    Target...

    TGTRLS

    *CURRENT

    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...

    SPLFDTA

    *ALL

  4. 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

  1. Type dspsavf file (<lib where savf is saved>/name of savf>); e.g., DSPSAVE FILE(QGPL/TRANSIT)

  2. You should now see the OUTQ components: Library saved, the Object Name, File Size, and Data (Yes).

  3. Type (Enter) "5" to display the contents of the OUTQ saved in the SAVF.

  4. 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

  1. From the Windows PC, open a command prompt: (Start > Run, enter cmd, and then press Enter).

  2. Navigate to the drive letter or directory where the SAVF file will be saved. Use any combination of cd, <driver letter:>, or other commands.

  3. Type ftp <iSeries_ IP_address>, where address is the IP address of the iSeries (AS/400) server.

  4. Enter User name and Password if necessary, and press Enter after entering each credential.

  5. Type bin and then press Enter to put ftp session into binary mode.

  6. Use the cd command to change to the directory where the SAVF file is saved.

  7. 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.

Additional information

  • Click here for the English Only (.PDF) version of this procedure.

LEGACY ID: HO3728

Was this article helpful?
Top