Previous Topic: ARGS Statement—Pass Arguments (UNIX, Windows, and HP Integrity NonStop Jobs)Next Topic: AS400LIB Statement—Specify the Name of a Library


AS400FILE Statement—Identify i5/OS Source File

The AS400FILE statement specifies the source file for the program that you want to run on an i5/OS system.

Supported Job Type

If the CLPNAME or COMMAND statement is not used, this statement is required for the i5/OS job type.

Syntax

This statement has the following format:

AS400FILE file|
          file(member)|
          library/file(member)|
          /QSYS.LIB/library.LIB/file.FILE/member.MBR
file

Specifies the file containing the CL source for the program. The value must be a valid i5/OS file name.

Note: If you specify the file name without a member name, *FIRST is used by default.

member

Specifies the member in the file that contains the CL source for the program. The value must be a valid i5/OS member name.

library

Specifies the name of the library that contains the source file for the program that you want to run. The value must be a valid i5/OS library name.

Notes:

Example: Specify a File that Contains the Program to Run

This example runs a program that is contained in the BACKUP member of the CLSRC file. The library name is not specified in the AS400FILE or the AS400LIB statement, so the agent uses the job's library list.

AGENT I5AGENT
AS400FILE CLSRC(BACKUP)