Previous Topic: System ContextsNext Topic: PGM


JOB

The Job (JOB) context contains system fields that supply execution time information about the job that executes the HLL program implementing a function. You cannot add additional fields to the JOB context. You would use this context primarily to define system data to a particular field, such as job date, user name, or job execution start time.

You can only use JOB context fields for input to other functions. They cannot be changed.

The fields that appear in the JOB context are provided in a shipped file called *Job Data.

Field

Attr

Role

*USER

VNM

System name of job user

*JOB

VNM

System name of job

*PROGRAM

VNM

System name of HLL program

*Job number

NBR

Job number

*Job submitted/start date

DTE

Date job submitted

*Job exec start date

DTE

Date job started executing

*Job exec start time

TIME

Time job started executing

*Job date

DTE

Time and date job started executing

*Job year

NBR

Current year of job date

*Job month

NBR

Current month of job date

*Job day

NBR

Current day of job date

*Job time

TME

Current time of job date

*Job hour

NBR

Current hour of job date

*Job minute

NBR

Current minute of job date

*Job second

NBR

Current second of job date

*Function main file name

VNM

System name of function’s main file (1)

*Function main file lib

VNM

System name of lib. containing file (1)

*Function main file mbr

VNM

System name of file member (1)

*Function main lib/file

CDE

Function’s main library and library file (1)

*Current

RDB

For DRDA

*Local

RDB

For DRDA

(1) Not valid for SQL

 

 

The JOB context is available in the action diagrams of all function types.