JOBREC
//JOBREC
keyword(value)
keyword(value)
//END JOBREC
- The value of each keyword can continue over one or more lines.
- Each statement must be on a separate line.
- The value of each keyword must be enclosed within parentheses. This means that every character enclosed within the parentheses is considered to be part of the keyword value, including blanks and single quotes.
- The script or executable must follow the //END JOBREC line.
- If you specify the same keyword more than once, only the last keyword specified is considered valid.
- You can insert any comment text by using //* as the starting characters.
- Unsupported keywords inserted in the statement are ignored without warning.
- Keywords are optional, unless otherwise indicated.
- Keywords and values are case-sensitive.
In contrast, with native z-centric jobs defined directly in the EQQJBLIB without any JOBREC, or with a JOBREC but without the JOBTYPE keyword, the USERID provided by the JOBUSER keyword of the JOBREC, or by EQQUX001, is used by the z-centric agent as the ID under which it submits the job on the server where the agent runs.
JOBREC is supported by z-centric agent (HCL Workload Automation Agent) on IBM i systems, provided that you
set RunExecutableAsIBMiJobs=true
in the JobManager.ini
file.
In the JOBREC statement, you can define different job types.
Job to be run | Keywords | Section |
---|---|---|
database |
DBNAME (required) |
Syntax diagram for database job types |
file transfer |
JOBPWD (required) |
Syntax diagram for file transfer job types |
web service |
JOBTYPE (required) |
Syntax diagram for web service job types |
java |
CLASSNAME (required) |
Syntax diagram for Java job type |
xajob |
JOBTYPE (required) |
Syntax diagram for xajob job type |
j2ee jms |
CONNFACTORY (required) |
Syntax diagram for J2EE jms job type |