Event Types
Theme: Configure
Who Is It For? Automation Engineer
What Is It?
This section contains the syntax, definition, and parameter descriptions for all supported OpCon events.
Administrative Events
$CALENDAR:ADD
The $CALENDAR:ADD event adds one or more dates to an existing calendar. If the calendar does not exist, the event will fail.
Adding and removing dates on a calendar can have a direct impact to whether jobs will run or not.
Syntax:
$CALENDAR:ADD,<calendar name>,<calendar dates>
Parameters:
- <calendar name>: The calendar name to which to add the dates
- <calendar dates>: A semicolon (;) separated list of dates to add to the calendar. The dates must be defined using a date syntax recognized by the regional settings of the user running SMA Service Manager
Required Privileges:
- Maintain Calendars
XML Syntax:
<EVENT>
<TYPE>CALENDAR</TYPE>
<ACTION>ADD</ACTION>
<CALNAME></CALNAME>
<DATES>
<CALDATE></CALDATE>
<CALDATE></CALDATE>\...</DATES>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$CALENDAR:DEL
The $CALENDAR:DEL event deletes one or more dates a calendar. If the calendar does not exist, the event will fail.
Adding and removing dates on a calendar can have a direct impact to whether jobs will run or not.
Syntax:
$CALENDAR:DEL,<calendar name>,<calendar dates>
Parameters:
- <calendar name>: The calendar name to which to add the dates
- <calendar dates>: A semicolon (;) separated list of dates to remove from the calendar. The dates must be defined using a date syntax recognized by the regional settings of the user running SMA Service Manager
Required Privileges:
- Maintain Calendars
XML Syntax:
<EVENT>
<TYPE>CALENDAR</TYPE>
<ACTION>DEL</ACTION>
<CALNAME></CALNAME>
<DATES>
<CALDATE></CALDATE>
<CALDATE></CALDATE>\...</DATES>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:MACHGRP
The $JOB:MACHGRP event changes the Machine Group for a job in the Daily.
Syntax:
$JOB:MACHGRP,<schedule date>,<schedule name>,<job name>,<machine group name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <machine group name>: The new Machine Group name for the job to use in the Daily schedule
Required Privileges:
- Modify Jobs in Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>MACHGRP</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<MACHGRPNAME></MACHGRPNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:MAXRUNTIME
The $JOB:MAXRUNTIME event updates the maximum runtime for the job in the Daily.
Syntax:
$JOB:MAXRUNTIME,<schedule date>,<schedule name>,<job name>,<minutes>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <minutes>: The number of minutes to set the Max Run Time for the job to use in the Daily schedule
Required Privileges:
- Modify Jobs in Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>MAXRUNTIME</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<MAXMINS></MAXMINS>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:PRIORITY
The $JOB:PRIORITY event updates the SAM Priority for the job in the Daily.
Syntax:
$JOB:PRIORITY,<schedule date>,<schedule name>,<job name>,<SAM priority>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <SAM priority>: The new SAM priority value for the job to use in the Daily schedule
Required Privileges:
- Modify Jobs in Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>PRIORITY</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<PRIORITY></PRIORITY>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:TAGADD
The $JOB:TAGADD event adds one or more tags to the job in the Daily.
Syntax:
$JOB:TAGADD,<schedule date>,<schedule name>,<job name>,<tags>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <tags>: A semicolon (;) separated list of tags to add to the Daily job
Required Privileges:
- Modify Jobs in Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>TAGADD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<TAGS>
<TAG></TAG>
<TAG></TAG>\...</TAGS>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:TAGDEL
The $JOB:TAGDEL event deletes one or more tags from the job in the Daily.
Synax:
$JOB:TAGDEL,<schedule date>,<schedule name>,<job name>,<tags>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <tags>: A semicolon (;) separated list of tags to delete from the Daily job
Required Privileges:
- Modify Jobs in Daily Schedules
XML Syntax:
<EVENT\>
<TYPE\>JOB</TYPE\>
<ACTION\>TAGDEL</ACTION\>
<SKDDATE\></SKDDATE\>
<SKDNAME\></SKDNAME\>
<JOBNAME\></JOBNAME\>
<TAGS\>
<TAG\></TAG\>
<TAG\></TAG\>\...</TAGS\>
<USERNAME\></USERNAME\>
<USERPWD\></USERPWD\>
</EVENT\>
$JOB:USER
The $JOB:USER event changes the Batch User on the job in the Daily.
Syntax:
$JOB:USER,<schedule date\>,<schedule name\>,<job name\>,<batch user\>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Daily schedule
- <batch user>: The name of the new Batch User account for the job to use in the Daily schedule
Required Privileges:
- Only the OCADM role can change the Batch User via an event.
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>USER</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USER></USER>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOBMASTER:BUILDSTATE
The $JOBMASTER:BUILDSTATE event changes the build status for the frequency of the job in the Master.
Syntax:
$JOBMASTER:BUILDSTATE,<schedule name>,<job name>,<frequency name>,<build state>
Parameters:
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Master schedule
- <frequency name>: The frequency name of the job to associate the Build Status with in the Master schedule
- <build state>: The build status to set for the frequency on the job in the Master. Valid values include:
- D, Disable Frequency, or Disabled
- R, or Released
- S, To Be Skipped, or Skipped
- N, Do Not Schedule, or Not Scheduled
- H, On Hold, or Held
Required Privileges:
- Modify Jobs in Master Schedules
XML Syntax:
<EVENT>
<TYPE>JOBMASTER</TYPE>
<ACTION>BUILDSTATE</ACTION>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<BLDSTATE></BLDSTATE>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOBMASTER:TAGADD
The $JOBMASTER:TAGADD event adds one or more tags to the job in the Master.
Syntax:
$JOBMASTER:TAGADD,<schedule name>,<job name>,<frequency name>,<tags>
Parameters:
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Master schedule
- <frequency name>: The frequency name of the job to associate the tag with in the Master schedule. To associate the tag at the job level, leave this field blank
- <tags>: A semicolon (;) separated list of tags to add to the Master job
Required Privileges:
- Modify Jobs in Master Schedules
XML Syntax:
<EVENT>
<TYPE>JOBMASTER</TYPE>
<ACTION>TAGADD</ACTION>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<TAGS>
<TAG></TAG>
<TAG></TAG>\...</TAGS>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOBMASTER:TAGDEL
The $JOBMASTER:TAGDEL event deletes one or more tags from the job in the Master.
Syntax:
$JOBMASTER:TAGDEL,<schedule name>,<job name>,<frequency name>,<tags>
Parameters:
- <schedule name>:The name of the schedule containing the job
- <job name>: The name of the job to affect on in the Master schedule
- <frequency name>: The frequency name the tag is associated with on the job with in the Master schedule. To delete the tag at the job level, leave this field blank
- <tags>: A semicolon (;) separated list of tags to delete from the Master job
Required Privileges:
- Modify Jobs in Master Schedules
XML Syntax:
<EVENT>
<TYPE>JOBMASTER</TYPE>
<ACTION>TAGDEL</ACTION>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<TAGS>
<TAG></TAG>
<TAG></TAG>\...</TAGS>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$RESOURCE:DEL
The $RESOURCE:DEL event deletes the resource from the administrative tables. This event will only succeed if a cross reference check reveals that there are no jobs in the Master or Daily using this resource for a Resource Dependency or Resource Update.
When you delete a resource, internal and external events that reference the resource will begin failing unless you modify them.
Syntax:
$RESOURCE:DEL,<resource name>
Parameters:
- <resource name>: The name of the resource to delete
Required Privileges:
- Maintain Thresholds/Resources
XML Syntax:
<EVENT>
<TYPE>RESOURCE</TYPE>
<ACTION>DEL</ACTION>
<RESOURCENAME></RESOURCENAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$RESOURCE:RENAME
The $RESOURCE:RENAME event renames a resource in the administrative tables.
When you rename a resource, internal and external events that reference the resource will begin failing unless you modify them.
Syntax:
$RESOURCE:RENAME,<old resource name>, <new resource name>
Parameters:
- <old resource name>: The current name of the resource to rename.
- <new resource name>: The new name for the resource. The name must not exceed 20 characters and cannot contain single quotes.
Required Privileges:
- Maintain Thresholds/Resources
XML Syntax:
<EVENT>
<TYPE>RESOURCE</TYPE>
<ACTION>RENAME</ACTION>
<OLDNAME></OLDNAME>
<NEWNAME></NEWNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$THRESHOLD:DEL
The $THRESHOLD:DEL event deletes the threshold from the administrative tables. This event will only succeed if a cross reference check reveals that there are no jobs in the Master or Daily using this resource for a Threshold Dependency or Threshold Update.
When you delete a threshold, internal and external events that reference the threshold will begin failing unless you modify them.
Syntax:
$THRESHOLD:DEL,<threshold name>
Parameters:
- <threshold name>: The name of the threshold to delete
Required Privileges:
- Maintain Thresholds/Resources
XML Syntax:
<EVENT>
<TYPE>THRESHOLD</TYPE>
<ACTION>DEL</ACTION>
<THRESHNAME></THRESHNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$THRESHOLD:RENAME
The $THRESHOLD:RENAME event renames a threshold in the administrative tables.
When you rename a threshold, internal and external events that reference the threshold will begin failing unless you modify them.
Syntax:
$THRESHOLD:RENAME,<old threshold name>,<new threshold name>
Parameters:
- <old threshold name>: The current name of the threshold to rename.
- <new threshold name>: The new name for the threshold. The name must not exceed 20 characters and cannot contain single quotes.
Required Privileges:
- Maintain Thresholds/Resources
XML Syntax:
<EVENT>
<TYPE>THRESHOLD</TYPE>
<ACTION>RENAME</ACTION>
<OLDNAME></OLDNAME>
<NEWNAME></NEWNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
Job-Related Events
For all job-related events, only valid job status changes are allowed. For more information, refer to Job Statuses in the Concepts online help.
$JOB:ADD
The $JOB:ADD event adds the job from the Master tables to the Daily tables for the specified parameters. Depending on the job's "Allow Multi-Instance" setting, requesting a running job will start a duplicate job. For more information, refer to Adding Jobs to Daily Schedules in the Concepts online help.
Syntax:
$JOB:ADD,<schedule date>,<schedule name>,<job name>,<frequency name>,\[job instance property definitions\],\[reopen schedule: Y/N\],\[apply exceptions: Y/N\]
Parameters:
-
<schedule date>: The date to which to add the job
-
<schedule name>: The name of the schedule containing the job
-
<job name>: The name of the job to add to the Daily schedule
-
<frequency name>: The frequency to use for adding the correct dependencies and events for the job. If a frequency name is not specified, the job will default to its first frequency
-
[job instance property definitions]: Defines properties and values for the job being added. This parameter is optional. If not specified, the comma preceding this parameter is not required. For information on creating valid property definitions, refer to Defining Properties in the Concepts online help. Define Properties using the following syntax in the event:
PropertyName1=PropertyValue1;PropertyName2=PropertyName2
If the job is configured to "Run on Each Machine" in a group, the MACHINENAME=<machine name> property can be defined as the first property to add only an instance of the job for one machine.
- [reopen schedule: Y/N]: Indicates whether a completed parent schedule is reopened. This parameter is optional. Valid values are:
- Y: Reopen a parent schedule that is closed (has run and is completed) so that any new jobs that are added via the $JOB:ADD event will run. When set to Yes (Y), this new parameter will override the "Job Events to Restart Schedules" setting in the Server Options if it is set to False
- N: Do not reopen a parent schedule that is closed (has run and is completed). Any new jobs that are added via the $JOB:ADD event will remain in a Qualifying state and never run. When set to No (N), this new parameter will override the "Job Events to Restart Schedules" setting in the Server Options if it is set to True
- If the parameter is not set or specified, the default value will be set to N
note
SAM will reject $JOB:ADD events for Container jobs whose subschedules are In Process.
- [apply exceptions: Y/N]: Indicates whether exceptions will be applied to the job when the job is added. This parameter is optional. Valid values are:
- Y: Apply exceptions to the job
- N: Do not apply exceptions to the job
- If the parameter is not set or specified, the default value will be set to N
Required Privileges:
- Add Jobs to Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>ADD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<PROPERTIES>
<PROPERTY></PROPERTY>
<PROPERTY></PROPERTY>\...</PROPERTIES>
<REOPENSKD></REOPENSKD>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:ADDHLD
The $JOB:ADDHLD event adds the job from the Master tables to the Daily tables with a status of Held for the specified parameters. Depending on the job's "Allow Multi-Instance" setting, requesting a running job will start a duplicate job.
Syntax:
$JOB:ADDHLD,<schedule date>,<schedule name>,<job name>,<frequency name>,\[job instance property definitions\],\[reopen schedule: Y/N\]
Parameters:
-
<schedule date>: The date to which to add the job
-
<schedule name>: The name of the schedule containing the job
-
<job name>: The name of the job to add to the Daily schedule
-
<frequency name>: The frequency to use for adding the correct dependencies and events for the job. If a frequency name is not specified, the job will default to its first frequency
-
[job instance property definitions]: Defines properties and values for the job being added. This parameter is optional. If not specified, the comma preceding this parameter is not required. For information on creating valid property definitions, refer to Defining Properties in the Concepts online help. Define Properties using the following syntax in the event:
PropertyName1=PropertyValue1;PropertyName2=PropertyName2
If the job is configured to "Run on Each Machine" in a group, the MACHINENAME=<machine name> property can be defined as the first property to add only an instance of the job for one machine.
- [reopen schedule: Y/N]: Indicates whether a completed parent schedule is reopened. This parameter is optional. Valid values are:
- Y: Reopen a parent schedule that is closed (has run and is completed) so that any new jobs that are added via the $JOB:ADD event will run. When set to Yes (Y), this new parameter will override the "Job Events to Restart Schedules" setting in the Server Options if it is set to False
- N: Do not reopen a parent schedule that is closed (has run and is completed). Any new jobs that are added via the $JOB:ADD event will remain in a Qualifying state and never run. When set to No (N), this new parameter will override the "Job Events to Restart Schedules" setting in the Server Options if it is set to True
- If the parameter is not set or specified, the default value will be set to N
note
SAM will reject $JOB:ADD events for Container jobs whose subschedules are In Process.
- [apply exceptions: Y/N]: Indicates whether exceptions will be applied to the job when the job is added. This parameter is optional. Valid values are:
- Y: Apply exceptions to the job
- N: Do not apply exceptions to the job
- If the parameter is not set or specified, the default value will be set to N
Required Privileges:
- Add Jobs to Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>ADDHLD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<PROPERTIES>
<PROPERTY></PROPERTY>
<PROPERTY></PROPERTY>\...</PROPERTIES>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:BAD
The $JOB:BAD event marks the job as Failed.
Syntax:
$JOB:BAD,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Mark Jobs Failed
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>BAD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:CANCEL
The $JOB:CANCEL event cancels the job. Any jobs dependent on this job does not have the dependency met. This event is allowed for jobs on 'hold'.
Syntax:
$JOB:CANCEL,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Cancel Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>CANCEL</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:DELETE
The $JOB:DELETE event deletes the job from the Daily schedule. If the job is Running, the event is rejected.
Syntax:
$JOB:DELETE,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Delete Jobs from Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>DELETE</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:FIXED
The $JOB:FIXED event marks the job as Fixed.
Syntax:
$JOB:FIXED,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Delete Jobs from Daily Schedules
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>DELETE</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:GOOD
The $JOB:GOOD event marks the job as Finished OK.
Syntax:
$JOB:GOOD,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Mark Jobs Finished OK
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>GOOD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:HOLD
The $JOB:HOLD event places the job on hold. The SAM does not start the job until it is released.
Syntax:
$JOB:HOLD,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Hold Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>HOLD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:KILL
The $JOB:KILL event aborts the job on the agent machine. OpCon reports a killed job as Failed. This event is not available for the BIS, OpenVMS, and OS 2200 platforms.
Syntax:
$JOB:KILL,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Kill Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>KILL</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:QUESTATE
The $JOB:QUESTATE event reports the queue state of a tracked job. This event is only passed between the agent and the SAM to update the queue status and queue information for a job.
Syntax:
$JOB:QUESTATE, schedule-date, schedule-name, job-name, job-status, job-que-info|mach|job-que-display
Required Privileges: None
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>QUESTATE</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<JOBSTATUS></JOBSTATUS>
<JOBPDATA></JOBPDATA>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:QUEUED
The $JOB:QUEUED event tracks user-submitted jobs on the IBM i and z/OS platforms. This event is only passed between the agent and the SAM. If a running job is requested, the multi-instance setting on the job is honored. This event must be submitted to an active schedule, or the event is rejected, unless the AdHoc schedule name is used. See additional notes about the AdHoc job under the event $JOB:TRACK.
If the job is not multi-instance and it is already associated with an OpCon job in Operations that is Waiting or Running, the SAM rejects the event. If the job is Finished OK or Failed, SAM accepts the event for processing.
Parameters:
None
Required Privileges:
- TBD
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>QUEUED</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<JOBPDATA></JOBPDATA>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
For IBM i, visit the following section in the IBM i Agent online help: Overview of Job Tracking
For z/OS, visit the following section in the Concepts online help: Tracking Externally Submitted Batch Job Events in OpCon
$JOB:RELEASE
The $JOB:RELEASE event releases the job from a Held state. The SAM starts this job once all its dependencies have been satisfied.
Syntax:
$JOB:RELEASE,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Release Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>RELEASE</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:RESCHEDHLD
The $JOB:RESCHEDHLD reschedules the job start time after the number of minutes specified. This job will be rescheduled, but put in a Held state.
Syntax:
$JOB:RESCHEDHLD,<schedule date>,<schedule name>,<job name>,<T/S/N>,<minutes>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
- <T/S/N>:
- T: The new start time is calculated based on the time the job Terminated
- If the job is on a schedule in the future that has not started, SAM uses the future schedule start date and intended start time of the job
- S: The new start time is calculated based on the time the job Started
- If the job is on a schedule in the future that has not started, SAM uses the future schedule start date and intended start time of the job
- N: The new start time is calculated based on Now, which is the current time the event is processed
note
The start time of a running job cannot be rescheduled. SAM will reject $JOB:RESCHEDHLD events for Container jobs whose subschedules are In Process.
- If the job has not run yet in an active schedule, the SAM always uses the current time the event is processed plus the number of minutes specified in the event
- SAM uses N by default if the value is not specified in the event
- <minutes>: Define the number of minutes in the future to set the start time based on the setting in the T/S/N field. The maximum value is 1439
- For jobs that have not yet started, you can use the plus (+) and minus (-) symbols to increment or decrement the current start offset value of a job. The <T/S/N> value is ignored in this case
- T: The new start time is calculated based on the time the job Terminated
Required Privileges:
- Restart Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>RESCHEDHLD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<OFFSETFROM></OFFSETFROM>
<OFFSETMIN></OFFSETMIN>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:RESCHEDULE
The $JOB:RESCHEDULE reschedules the job start time after the number of minutes specified. The event updates the job's status to Qualifying; consequently, the event releases a Hold status and clears a To Be Skipped status.
If the job should reschedule itself on a Finished OK or Failed status, Continuous recommends using the Job Frequency and Other Job Details features in the Concepts online help.
The Job Recurrence and Retry on Job Failure features are much more efficient than the $JOB:RESCHEDULE event when used in those scenarios.
By default if a schedule is Completed, the reschedule event will not automatically re-open the schedule. For information on changing the setting to "Allow Job Events to Restart Schedules", refer to Time Settings in the Concepts online help.
Syntax:
$JOB:RESCHEDULE,<schedule date>,<schedule name>,<job name>,<T/S/N>,<minutes>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
- <T/S/N>:
- T: The new start time is calculated based on the time the job Terminated
- If the job is on a schedule in the future that has not started, SAM uses the future schedule start date and intended start time of the job
- S: The new start time is calculated based on the time the job Started
- If the job is on a schedule in the future that has not started, SAM uses the future schedule start date and intended start time of the job
- N: The new start time is calculated based on Now, which is the current time the event is processed
note
The start time of a running job cannot be rescheduled. SAM will reject $JOB:RESCHEDULE events for Container jobs whose subschedules are In Process.
- If the job has not run yet in an active schedule, the SAM always uses the current time the event is processed plus the number of minutes specified in the event
- SAM uses N by default if the value is not specified in the event
- <minutes>: Define the number of minutes in the future to set the start time based on the setting in the T/S/N field. The maximum value is 1439
- For jobs that have not yet started, you can use the plus (+) and minus (-) symbols to increment or decrement the current start offset value of a job. The <T/S/N> value is ignored in this case
- T: The new start time is calculated based on the time the job Terminated
Required Privileges:
- Restart Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>RESCHEDULE</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<OFFSETFROM></OFFSETFROM>
<OFFSETMIN></OFFSETMIN>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:RESTART
The $JOB:RESTART event places the job back in a Qualifying state. The job is started as soon as all dependencies are met. By default, the job must be restarted in an active schedule, or the event is rejected.
Syntax:
$JOB:RESTART,<schedule date>,<schedule name>,<job name>,\[Force Restart (optional)\],\[Restart Step (optional)\]
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
- [Force Restart (optional)]: Indicates whether to force start the job. This parameter is optional. Valid values are:
- Y: Force start the job
- N: Do not force start the job
- If the parameter is not set or specified, the default value will be set to N
- [Restart Step (optional)]: Specifies whether to restart the job on a pre-configured step setting. This parameter is optional and is only supported for the SAP R/3 and CRM, SAP BW, UNIX, and z/OS platforms. Valid values are dependent on the host system:
- SAP: For more on the valid values for the SAP system, refer to the SAP Agent Advanced Features in the SAP agent documentation
- SAP BW: For more on the valid values for the SAP BW system, refer to the SAP BW agent Advanced Featuresin the SAP BW agent documentation
- UNIX: For more on the valid values for the UNIX system, refer to sma_job_step in the UNIX agent documentation
- z/OS: The start and end steps can be specified in the 'JCL' format (jobstep or jobstep.procstep), separated by a pipe character. If there is no pipe, or it is not followed by a step name, the job will run to the end. If there is no starting step (i.e., the restart step starts with a pipe), then the job will be restarted without using the step restart feature
Required Privileges:
- Restart Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>RESTART</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:RESTARTHLD
The $JOB:RESTARTHLD event places the job back in a Held state. The job will be started as soon as all dependencies are met and it is Released. By default, the job must be restarted in an active schedule, or the event will be rejected.
Syntax:
$JOB:RESTARTHLD,<schedule date>,<schedule name>,<job name>,\[Force Restart (optional)\],\[Restart Step (optional)\]
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
- [Force Restart (optional)]: Indicates whether to force start the job. This parameter is optional. Valid values are:
- Y: Force start the job
- N: Do not force start the job
- If the parameter is not set or specified, the default value will be set to N
- [Restart Step (optional)]: Specifies whether to restart the job on a pre-configured step setting. This parameter is optional and is only supported for the SAP R/3 and CRM, SAP BW, UNIX, and z/OS platforms. Valid values are dependent on the host system:
- SAP: For more on the valid values for the SAP system, refer to the SAP Agent Advanced Features in the SAP agent documentation
- SAP BW: For more on the valid values for the SAP BW system, refer to the SAP BW agent Advanced Featuresin the SAP BW agent documentation
- UNIX: For more on the valid values for the UNIX system, refer to sma_job_step in the UNIX agent documentation
- z/OS: The start and end steps can be specified in the 'JCL' format (jobstep or jobstep.procstep), separated by a pipe character. If there is no pipe, or it is not followed by a step name, the job will run to the end. If there is no starting step (i.e., the restart step starts with a pipe), then the job will be restarted without using the step restart feature
Required Privileges:
- Restart Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>RESTARTHLD</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:SKIP
The $JOB:SKIP event places the job in a Job to be Skipped state until the job qualifies to start. When the job qualifies, it is canceled and the job dependency of all subsequent jobs is met.
Syntax:
$JOB:SKIP,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Skip Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>SKIP</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:START
The $JOB:START event triggers SAM to disregard all dependencies and start the job immediately. This event is invalid for jobs that are in a Skipped status.
Syntax:
$JOB:START,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Required Privileges:
- Start Jobs
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>START</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:TRACK
The $JOB:TRACK event tracks user-submitted jobs on the IBM i, MCP, and z/OS platforms. This event is only passed between the agent and the SAM. By default, this event must be submitted to an active schedule, or the event is rejected.
The AdHoc Schedule
Although a pre-defined job on a named OpCon schedule enables more job dependencies and other job control features, it may sometimes be convenient to perform simple job tracking without a pre-defined and active schedule. For those cases the AdHoc schedule may be specified by the agents.
The AdHoc schedule supports the following characteristics:
- The schedule is dynamically added to the Daily Tables when SAM-SS is informed of a job on the schedule that is to be tracked.
- Once active, the schedule remains open until midnight when it is allowed to go to a completed state. All jobs on the schedule must finish before the schedule closes.
If jobs to be tracked are on named schedules, those schedules must be built and must be active in the Daily Tables for the SAM-SS to track or queue the job(s). However, the jobs to be tracked should not be allowed to be built in advance when the schedule is built. Tracked jobs will appear on named schedules only when the agents send one of the job tracking external event commands, including $JOB:TRACK and $JOB:QUEUED. See specific notes about Job Tracking in the individual agent references listed below.
Pre-defined tracked jobs can be controlled by the multi-instance box to prevent or allow duplicate jobs.
Provided here are references for implementing the Job Tracking concept.
For IBM i, visit the following section in the IBM i Agent online help: Overview of Job Tracking
For MCP, visit the following section in the MCP Agent online help: Using SMA/Announce
For z/OS, visit the following section in the Concepts online help: Tracking Externally Submitted Batch Job Events in OpCon
Parameters:
None
XML Syntax:
<EVENT>
<TYPE>JOB</TYPE>
<ACTION>TRACK</ACTION>
<SKDDATE></SKDDATE>
<SKDNAME></SKDNAME>
<JOBNAME></JOBNAME>
<FREQNAME></FREQNAME>
<JOBPDATA></JOBPDATA>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$JOB:UNDERREVIEW
The$JOB:UNDERREVIEW event marks the job as Under Review.
Syntax:
$JOB:UNDERREVIEW,<schedule date>,<schedule name>,<job name>
Parameters:
- <schedule date>: The date of the Daily schedule containing the job
- <schedule name>: The name of the schedule containing the job
- <job name>: The name of the job on which to run command in the Daily schedule
Machine-Related Events
$MACHINE:MAXJOBS
XML Syntax:
<EVENT>
<TYPE>MACHINE</TYPE>
<ACTION>MAXJOBS</ACTION>
<MACHNAME></MACHNAME>
<MACHMAX></MACHMAX>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$MACHINE:STATUS
The $MACHINE:STATUS event changes the communication status of a machine.
Placing a machine in a down state instructs the SAM to stop communicating with the specified machine. Jobs active on the specified machine run until completion.
Syntax:
$MACHINE:STATUS,<machine name>,<U/D/L>
Parameters:
- <machine name>: An OpCon Machine Name
- <U/D/L>: The requested machine state
- U: Places the machine in an up state
- D: Places the machine in a down state
- L: Places the machine in a limited state (no job starts will be sent)
Required Privileges:
- All Administrative Functions
XML Syntax:
<EVENT>
<TYPE>MACHINE</TYPE>
<ACTION>STATUS</ACTION>
<MACHNAME></MACHNAME>
<MACHSTATUS></MACHSTATUS>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
Notification Events
$NOTIFY:COMMAND
The $NOTIFY:COMMAND event runs a command.
This notification event is disabled on Linux. Events defined before Release 20.0.0 will be disabled.
Syntax:
$NOTIFY:COMMAND,<path and command to run>,\[workingdir\],<batch user>
Parameters:
- <path and command to run>: Full path and name of the program to run as well as any arguments to be passed to it
- [workingdir]: Working directory used by the program
- <batch user>: The user with permissions to run the program
Required Privileges:
- The submitting user must have access to the specified Batch User. No function privilege is required.
XML Syntax:
<EVENT>
<TYPE>NOTIFY</TYPE>
<ACTION>COMMAND</ACTION>
<WINCOMMAND></WINCOMMAND>
<WORKDIR></WORKDIR>
<BATCHUSER></BATCHUSER>
<USERNAME></USERNAME>
<USERPWD></USERPWD>
</EVENT>
$NOTIFY:EMAIL
The $NOTIFY:EMAIL event sends an SMTP mail message.
Syntax:
$NOTIFY:EMAIL,<to>,\[cc\],\[ccc\],<subject>,<message>,\[attachments\],\[exclude prefix information from header: Y/N\]
Parameters:
- <to>: One or more email address (including distribution groups), separated by semicolons (;), to receive the message
- [cc]: One or more email address (including distribution groups), separated by semicolons (;), to be copied on the message
- [bcc]: One or more email address (including distribution groups), separated by semicolons (;), to be blind copied on the message
- <subject>: The subject of the email
- <message>: Defines a complete, detailed message in the body of the email. By default, no machine, schedule, or job information is passed with this notification
- [attachments]: Defines the full UNC path to one or more attachments. This parameter is optional. Separate multiple attachments using pipes (|) (e.g., \\server1\file1|\\Server1\file2)
- [exclude prefix information from header: Y/N]: Specifies whether to include all prefix (system-generated) information in the header of the notification. This parameter is optional
By default, this parameter is set to N (No). This means that the SMA Notify Handler will insert the system-generated information , which includes a Notification ID, before any other information in the message so users can look up the source of a notification. For more information, refer to Looking up Notification Sources in the Enterprise Manager online help.
XML Syntax:
<EVENT>
<TYPE>NOTIFY</TYPE>
<ACTION>EMAIL</ACTION>
<MAILTO></MAILTO>
<MAILCC></MAILCC>
<MAILBCC></MAILBCC>
<MAILSUBJ></MAILSUBJ>
<MAILBODY></MAILBODY>
<ATTACHMENTS>