Using EQQUSINT

You use EQQUSINT to request Tivoli Workload Scheduler for z/OS to change the status of an operation at a workstation. The workstation can be any type except a workstation with the nonreporting attribute.

Invocation requirements

EQQUSINT has these invocation requirements:

Authorization
APF authorized, or supervisor state, or PSW key 0–7.
Dispatchable unit mode
Task mode.
Amode
24-bit, or ANY if APAR PQ74854 was applied.
ASC mode
Primary or access register (AR).
Interrupt status
Enabled for I/O and external interrupts.
Locks
No locks held.
Control parameters
All parameters must be addressable by the caller and in the primary address space.

EQQUSINT parameters

The calling program must pass all these parameters to the subroutine. Initialize RETCODE to zero in the call; it is set by EQQUSINT in the return.

EQQUSINT parameters

 TYPE      DS   CL1    (Event type)
 WSNAME    DS   CL4    (Workstation name)
 JOBNAME   DS   CL8    (Job name)
 ADID      DS   CL16   (Name of current application)
 OPNUM     DS   H      (Operation number)
 OCIA      DS   CL10   (Input arrival of current occurrence, YYMMDDHHMM)
 OPDUR     DS   CL4    (Operation duration, HHMM)
 OPERR     DS   CL4    (Error code)
 FORM      DS   CL8    (SYSOUT form number)
 SCLASS    DS   CL1    (SYSOUT class)
 SUBSYS    DS   CL4    (Subsystem name)
 EVTIME    DS   F      (Event time, 100*secs)
 EVDATE    DS   CL4    (Event date, 0nYYDDDF)
 RETCODE   DS   F      (EQQUSINT return code)
TYPE
Defines the reason that EQQUSINT is called. These values are valid:
C
Set the status of the operation to complete.
E
Set the status of the operation to ended-in-error.
I
Set the status of the operation to interrupted.
Q
Set the extended status of a started operation to Q to indicate that the operation is queued awaiting execution.
S
Set the status of the operation to started.
T
Set the extended status of a started operation to S to indicate that the operation is executing.
X
Reset the current status for this operation.
WSNAME
Is the name of the workstation.
JOBNAME
Is the name of the job that an event is being reported for.
ADID
Is the name of the current application.
OPNUM
Is the number, in hexadecimal format, of the current operation. You can specify 0000 or a number in the range 0001 to 00FF (decimal 1 to 255).
OCIA
Is the input arrival date and time of the current occurrence.
OPDUR
Is the duration, in hours and minutes, of an operation that is reported as complete.
OPERR
Is the error code for an operation that is reported as ended-in-error.
FORM
Contains the printer form name for operations at printer workstations.
SCLASS
Contains the SYSOUT class for operations at printer workstations.
SUBSYS
Is the name of the tracker subsystem that this event should be reported to. If SUBSYS is blank, the event is broadcast to all Tivoli Workload Scheduler for z/OS subsystems defined on the z/OS system where EQQUSINT is invoked.
EVTIME
Contains the time of the event that is being reported. If the field contains all binary zeros, Tivoli Workload Scheduler for z/OS uses the current time.
EVDATE
Contains the date of the event that is being reported. If the field contains all binary zeros, Tivoli Workload Scheduler for z/OS uses the current date. If n = 0, year is 19YY. If n = 1, year is 20YY.
RETCODE
Is set by EQQUSINT and can have one of these values:
0
Normal return. The event has been reported to Tivoli Workload Scheduler for z/OS.
8
Error return. There is an error in the information that was passed to EQQUSINT, and no event has been reported to Tivoli Workload Scheduler for z/OS.
Notes:
  1. You must specify valid values for the TYPE and WSNAME parameters and either the JOBNAME or ADID parameters. The remaining values can be initialized to zeros or blanks.
  2. OPDUR is processed only if TYPE has value C.
  3. OPERR is processed only if TYPE has value E.
  4. If you do not provide enough information to uniquely identify the operation and Tivoli Workload Scheduler for z/OS finds more than one operation that matches the criteria you specified, Tivoli Workload Scheduler for z/OS determines the most applicable operation to update. Tivoli Workload Scheduler for z/OS chooses the most applicable operation by investigating these characteristics in the stated order:
    1. The operation has priority 9.
    2. Earliest latest start time.
    3. Priority 8-1.
    4. Input arrival time specified for the operation, or the occurrence input arrival if the operation does not have input arrival specifically defined.
    Therefore, if you define only the WSNAME parameter and Tivoli Workload Scheduler for z/OS determines that there is more than one operation in the current plan for that workstation in status R, A, *, S, I, or E, then the operation with priority 9 is updated. If more than one operation specifies priority 9, then the operation with the earliest latest start time is updated. If latest start is equal, then the operation with the highest priority is updated. If priority is equal, the operation which specifies the earliest input arrival time is updated. If input arrival is also equal, the update is performed on a first-in-first-out basis.