Previous Topic: CREATEPARAMETER Statement—Specify Create ParametersNext Topic: CUSTOMPROP Statement—Specify Value Set Expressions for Default Values


CURLIB Statement—Specify the Name of the Current Library

The CURLIB statement specifies the name of the current library to use when running the job.

Note: If you do not specify a current library, the agent uses the current library of the user profile the agent runs under.

Supported Job Type

This statement is optional for the i5/OS job type.

Syntax

This statement has the following format:

CURLIB current_libraryc|
       /QSYS.LIB/current_library.LIB
current_library

Specifies the current library for the job.

Note: The entire value can be up to 46 characters; it cannot contain delimiters (such as spaces).

Example: Specify the Current Library for a Job

This example runs a program named MFGDATA on an i5/OS system. The current library for the job is PAY1, and the job description is DFTJOBD in library CYB1.

AGENT I5AGENT
CLPNAME MFGDATA
CURLIB PAY1
JOBD CYB1/DFTJOBD