Interface to the exit
The operation-status-change exit is invoked in task mode, problem state, and key 8 and the job-step task is APF-authorized. The active task runs with the same access authority as the job-step task. The exit must restore this state before returning to its caller.
Control is passed to the exit using the BAL instruction. The exit must return to its caller using the address and addressing mode passed to it in general register 14.
The exit is entered in AMODE 31 but must switch to AMODE 24 before performing any input or output operations, and then switch back to AMODE 31 before returning to the caller.
When the exit is entered, register 1 contains the address of the parameter list. Each address in this list is used to locate the parameter value. The following parameters are passed to the exit:
EQQUX007 parameters
NEWSTAT DS CL1 (New operation status)
OLDSTAT DS CL1 (Old operation status)
OPNUM DS H (Operation number)
CALLER DS CL4 (Caller identification)
ERRCODE DS CL4 (Error code)
WSNAME DS CL4 (Workstation name)
ADNAME DS CL16 (Application name)
OWNER DS CL16 (Application owner name)
GROUP DS CL8 (Authority group name)
JOBAREA DS A (Address of job-related data)
OPERAREA DS A (Address of operation-related data)
USRAREA DS A (User-defined field)
EXSTAT DS CL1 (Operation extended status)
OCCPTR DS A (Address of occurrence data)
OPRPTR DS A (Address of operation data)
UFNUM DS F (Number of user fields)
UFPTR DS A (User fields area address)
- NEWSTAT
- New status for the current operation:
- A
- Arrived at the workstation
- C
- Complete
- E
- Ended with errors
- I
- Interrupted
- R
- Ready for processing
- *
- Ready for processing (predecessor at nonreporting workstation complete)
- S
- Active (started)
- W
- Waiting
- OLDSTAT
- Previous status for the current operation. The same values are possible as for the new status, plus blank. Blank means that the operation has been added to the current plan by a function other than by daily-planning jobs. No call is made to EQQUX007 when operations are added by daily-planning jobs.
- OPNUM
- Number of the current operation.
- CALLER
- Function within HCL Workload Automation for Z that called
the exit:
- AR
- Automatic-recovery task
- EM
- Event-manager task
- GS
- General-service task, but not modify-current-plan
- MCP
- Modify-current-plan function in the general-service task
- NMM
- Normal-mode-manager task
- WSA
- Workstation-analyzer task
- ERRCODE
- Error code for the current operation, if the new status is E.
- WSNAME
- Name of the workstation where the current operation is active or will become active.
- ADNAME
- Application name for the current operation.
- OWNER
- Name of the owner of the current application.
- GROUP
- Name of the authority group that the current operation belongs to.
- JOBAREA
- Address of an area that contains information about the status changes related to a specific job.
The job-related area is mapped as follows:
The status is changed to S (started). The JOBNUM value can change only if the operation is rerun. JOBSTART is present when the new status at automatically reporting computer and printer workstations is S (started), C (complete), E (ended-in-error), or I (interrupted). JOBEND is present when the new status at one of these workstations is C or E.
STEPNAME, PSTEPNAM, ABCODE, and USRCODE are present only for jobs that have abended during running. ORIGNJE is present for processing operations when the new status is C or E.
When the status of an operation is changed from C or E to S, C, E, or I, certain JOBAREA fields are set to their previous values for that operation.
Fields in the job-related area are blank if information is not available when the exit is called.
- OPERAREA
- Address of an area that contains information about the operation whose status is being changed. This area is mapped as follows:
- USRAREA
- User field that is also passed to the EQQUX000 exit. It contains valid data only if you have an EQQUX000 exit that places some data in it. HCL Workload Automation for Z does not use or update this field.
- EXSTAT
- Extended status code of the operation. For a list of the valid codes, see Status, error, and reason codes.
For performance reasons, user exit EQQUX007 does not currently provide the extended status 'X' (waiting for resource). A new value, 'Z', valid for all current status codes and types of workstation, has been added to signal that an error has occurred in the DOA updating process. In this case, message EQQE106I is issued in EQQMLOG.
- OCCPTR
- Address of the common data of record CPLREC3C.
- OPRPTR
- Address of the common data of record CPLREC3P.
- USRFNR
- Number of user field records in USRFAREA.
- USRFAREA
- Address of the user field area, in a format as in the following example: