Customizing the job log header
A sample job log header template is downloaded on HCL Workload Automation for Z at installation time. You can customize it to fit it to your preferences.
When you customize the JLOGHDRTEMPL keyword of the HTTPOPTS initialization statement, you command the system to add a header containing run-related information to every job log released in the z-centric environment.
The header format can be personalized. The information displayed in the header is added depending on how you customize the header template sample that comes with the installation of HCL Workload Automation for Z and which predefined variables that describe the job and its run are featured in the header.
===============================================================
= JOBLOG HEADER
=
= Occurrence name : ${occname}
= Occurrence IA : ${IAYYYY}/${IAMM}/${IADD} ${IAhh}:${IAmm}
= Job name : ${jobname}
= Work station : ${wsname}
= Operation number: ${opernum}
= Start time : ${SYYYY}/${SMM}/${SDD} ${Shh}:${Smm}
= End time : ${EYYYY}/${EMM}/${EDD} ${Ehh}:${Emm}
= Process ID : ${processid}
= Duration : ${duration}
= Status : ${status}
= Return code : ${returncode}
= Hostname : ${hostname}
=
===============================================================
You can then edit and copy the sample to a PARM library that must be pointed to by the JLOGHDRTEMPL keyword of the HTTPOPTS initialization statement.
Variable | Name | Length | Value is... |
---|---|---|---|
Occurrence name | occname | 16 | sent at job submission |
Occurrence input arrival time | IAYYYY IAMM IADD IAhh IAmm | sent at job submission | |
Job name | jobname | 8 | sent at job submission |
Workstation | wsname | 4 | sent at job submission |
Operation number | opernum | 2 | sent at job submission |
Start time | SYYYY SMM SDD Shh Smm | local on agent | |
End time | EYYYY EMM EDD Ehh Emm | local on agent | |
Process ID | processid | local on agent | |
Duration | duration | local on agent | |
Status | status | local on agent | |
Return code | returncode | local on agent; NOERROR actions are ignored and not truncated to 4 characters | |
Hostname | hostname | local on agent; hostname of the agent where the job ran |
${variable_name}
Only simple variable substitution is allowed, no compound variables are supported. If the variable name is incorrect, the variable is left unresolved.
You can also use variables to compose the run dates. The dates are based on the local time of the controller.