Previous Topic

Next Topic

Book Contents

Book Index

IBM i (AS/400) job submission variable parameters

The following variables described in the table correspond to parameters of the IBM i (AS/400) Submit Job command:

NOTE: For more information about the valid values for these parameters, see your IBM i (AS/400) SBMJOB command documentation.

Variable

Description

%%ACGCDE

Accounting code for the job.

Valid values are in the <accountingCode> format or one of the following special values:

*USRPRF, *USER, *JOBD, *NOCHG, or *NONE

NOTE: This variable is relevant only for Control‑M/Agent for IBM i (AS/400) version 2.25 or later.

%%CURLIB

Name of the current library associated with the job being run.

%%DATE

Date that is assigned to the job when it is started.

%%HOLD

Whether the job is held at the time that it is put on the job queue.

%%INQMSGRPY

Manner in which pre-defined messages issued as a result of running this job are answered.

%%JOBD

Job description.

Valid values are in the <library>/<jobDescription> format or the value:

*USRPRF

%%JOBPTY

Job queue scheduling priority.

%%QUEUE

Name of the batch queue to which the job is submitted.

Valid values are in the <library>/<jobQueue> format or the value:

*JOBD

%%JOBQ

Same as %%QUEUE.

%%LDA

Local data areas (see Expressions for %%LDA - IBM i (AS/400) only).

%%LIBL

or

%%INLLIBL

Library list.

NOTE: The %%INLLIBL variable is relevant only for Control‑M/ Agent for IBM i (AS/400) version 2.25 or later.

%%LOG

Message logging values used to determine the amount and type of information sent to the job log by the job.

%%LOGCLPGM

Whether the commands that are run in a control language program are logged to the job log through the message queue of the CL program.

%%MSGQ

Name of the message queue to which a completion message is sent when the submitted job has completed execution.

Valid values are in the <library>/<messageQueue> format or one of the following special values:

*USRPRF, *WRKSTN, or *NONE

NOTE: Control‑M/Agent for IBM i (AS/400) version 2.25 or later uses a specific message queue as an event mechanism for job completion. If the message queue for a job is changed using the %%MSGQ variable, the event driven mechanism for this job is disabled.

%%OUTPTY

Output priority for spooled output files produced by the job.

%%OUTQ

Qualified name of the output queue used for spooled files that specify OUTQ(*JOB).

Valid values are in the <library>/<outputQueue> format or one of the following special values:

*CURRENT, *USRPRF, *DEV, or *JOBD

%%PRTDEV

Qualified name of the default printer device for this job.

%%PRTTXT

Up to 30 characters of text that is printed at the bottom of each page of printed output and on separator pages.

%%RTGDTA

Routing data used to start the first routing step in the job.

%%SWS

Job switches.

%%SYSLIBL

System portion of the initial library list that is used by the submitted job.

%%HEX

Indicates that the value that immediately follows is a hexadecimal value, such as %%PARMn=%%HEX2AF4.

This function ensures that the value is transferred to IBM i (AS/400) in the appropriate format.

%%DEC

Indicates that the value that immediately follows is a packed decimal value, such as, %%PARMn=%%DEC1289.

This function ensures that the value is transferred to IBM i (AS/400) in the appropriate format.

NOTE: For %%HEX and %% DEC you cannot use %%DEC<something>(%%DECEMBER)or %%HEX<something>(%%HEXAGON).

Parent Topic

Job submission variables