IBM Support

FTP a Spooled File to PC

Troubleshooting


Problem

Often times the customer does not have Navigator installed, so it makes it difficult to get a spooled file to the PC to e-mail or send to our FTP servers. This document explains how to FTP a spooled file to the customer's PC in ASCII (text format).

Resolving The Problem

Often times the customer does not have Navigator installed, so it makes it difficult to get a spooled file to the PC to e-mail or send to our FTP servers. This document explains how to FTP a spooled file to the customer's PC in ASCII (text format).

Follow these steps to FTP a spooled file to the customer's PC in ASCII (text format):

    Step 1 (Write Down the Attributes of the Spooled File)

    WRKSPLF
    Picture showing Option 8 on the splf to get the attributes.

    a) Press Enter. The next screen contains the attributes.
    This is a picutre showing the splf attributes.

    b) Write down the following from the above screen:

    File, Job, User, User Number, File Number.

    c) In the above screen, the following information must be collected:

    File: QSYSPRT
    Job: QPADEV000X
    User: V5JMCKEE
    User Number: 006828
    File Number: 000003

    d) Now, press F3 to go back to a command line.

    Step 2 (Create a Physical File)

    CRTPF FILE(QGPL/TRACE01) RCDLEN(132) MAXMBRS(*NOMAX) SIZE(*NOMAX)

    I specified library name QGPL and another arbitrary name TRACE01. You must remember what your physical file name is. In this example, it is named TRACE01 and it is in library QGPL.

    Step 3 (Copy the Spooled File)

    CPYSPLF (Press F4 after typing CPYSPLF. Do not press Enter.)

    You will see a screen that looks like the following:
    This is a picture showing the CPYSPLF command with all params entered.

    Fill in the appropriate parameters, and press Enter.

    Step 4 (FTP to your iSeries)

    1.Open a command prompt from your PC.
    2.At the command prompt command line, enter C:\>CD\ and press Enter.
    3.Create a directory to FTP your file to: C:\>MD FTPDOWN and press Enter.
    4.Change to that directory: C:\>CD FTPDOWN and press Enter.
    5.FTP to the iSeries: C:\>FTP [iSeries_name or IP] and press Enter. Examples are as follows:

    C:\>FTP RCHASSQ3
    C:\>FTP 172.16.5.1
    6.You will be prompted for your iSeries user ID and password. Enter them accordingly.
    7.Change to ASCII mode: FTP>ascii and press Enter.
    8.Get the file from the iSeries: FTP>get qgpl/trace01.txt and press Enter.
    -if you get a mesg stating: 501 Unknown extension in database file name please use quote site namefmt 0 subcommand before the get to change to the correct naming convention.
    9.End your FTP session: FTP>bye and press Enter.

    In the above example, you will have a file called trace01.txt in the folder (directory) called FTPDOWN. FTPDOWN is another arbitrary name. You can call it what you want.

    Here is what the screen looks like:
    This is a picture of an FTP attempt from the PC showng the transfer of the file.

    At this point, you have successfully FTPed a spooled file to the PC in ASCII format.

    [{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

    Historical Number

    457791951

    Document Information

    Modified date:
    11 November 2019

    UID

    nas8N1014235