The JAMS_SET_DATA routine can be called from your
JAMS_SCHCALLUSER routine to modify data associated with a job
completion. When calling JAMS_SET_DATA you pass one or more
pairs of data-ident and data-desc parameters.
The data identifiers supported vary based on the type of calluser
context. JAMS can call your code with the following context
types:
JAMS_K_SCHSTART
|
JAMS_SCHEDULE process is starting up.
|
JAMS_K_SCHSTOP
|
JAMS_SCHEDULE process is stopping.
|
JAMS_K_JOBSTART
|
A Job is starting to execute.
|
JAMS_K_JOBEND
|
A Job has completed.
|
The following data identifiers are supported by the
JAMS_SET_DATA routine when the context type is
JAMS_K_JOBEND:
JAMS_K_FINAL_STATUS
Allows you to change the final status of a job. You could, for example,
scan a job's .LOG file for a specific string and change a good status
to a bad status if the string was found. The data descriptor must point
to an integer variable.
JAMS_K_MAIL_ADR
Allows you to change the list of VMS mail addresses which will be
notified if this Job ended with a bad status. The list of addresses may
be up to 256 characters in length. The data descriptor must point to a
character string variable.
JAMS_K_OPER_CLASSES
Allows you to change the list of VMS OPCOM operator classes which will
receive an OPCOM message if this Job ended with a bad status. The list
of classes may be up to 256 characters in length. The data descriptor
must point to a character string variable.
JAMS_K_REPLY_USERS
Allows you to change the list of VMS username which will receive a
broadcast message if this Job ended with a bad status. The list of
usernames may be up to 256 characters in length. The data descriptor
must point to a character string variable.