Viewing, Adding, and Editing z/OS Job Details
Theme: Configure
Who Is It For? System Administrator, Automation Engineer
What Is It?
z/OS job details define how OpCon submits a job to a z/OS environment, including job card details, step parameters, data set definitions, and output handling. These details are configured in the Task Details panel of a z/OS master job in Solution Manager.
To view a z/OS job, you must have the required privileges as defined in Required Privileges.
Viewing z/OS Job Details
- Go to Library > Master Jobs.
- Select a z/OS job in the list.
- Select Edit.
- Expand the Task Details panel.
Adding z/OS Job Details
To add z/OS Job Details, complete the following steps:
- Create the job and general info as described in Adding a Job.
- Expand the Task Details section.
- From the Machines or Machine Group list, select the machine where the agent is installed. To use a machine group instead, toggle the Machines switch to Machine Group and select the group. The switch appears green when toggled to Machine Group.
- Select a Job Type.
Available z/OS job types:
Editing z/OS Job Details
To edit z/OS Job Details, complete the following steps:
- Go to Library > Master Jobs.
- Select a z/OS job.
- Select Edit.
- Select the lock icon. The button appears gray and locked (
) in Read-only mode and green and unlocked (
) in Admin mode.
- Expand the Task Details panel.
- From the Machines or Machine Group list, select the machine where the agent is installed. To use a machine group, toggle the Machines switch to Machine Group and select the group. The button appears green
when toggled.
BATCH
The Batch Job is the primary event type for z/OS scheduling. JCL for the scheduled job must reside in a library allocated to the OPCONxx agent task for the MachineID on which it is submitted. This is the only event type that may run on a system other than the one on which it is submitted.
- Member Name: Name of the library member containing the batch JCL. If blank, the job name is used.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
Continuous recommends leaving the Member Name blank in production definitions. Use the Event Name to identify the JCL member name, and reserve the Member Name for overrides.
-
Temporary Member: Overrides the Member Name. Can be defined in the Job Master, but is primarily used in the daily schedule to load a different JCL member for a specific instance. If the user edits the JCL and saves it to the override library, the agent generates a temporary member name so it is only used for that instance.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
-
Batch User: z/OS security ID assigned to the job. Defaults to the user ID in the job card or the USERID from XPSPARMS.
-
DDNAME: DD Name in the agent task pointing to the library containing the job's JCL. Defaults to XPSJCL, or the agent JCLDD parameter in XPSPARMS. May contain alphabetic, national, and numeric characters.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
If DDNAME is set to $DUMMY, no batch job is submitted. Once all pre-runs are satisfied, the job is marked complete. This creates a "Pre-run only" job, similar to the File Watcher job type on other platforms.
- Override DDNAME: DD Name in the agent task to search for JCL before the batch DD NAME.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
If the override DD name begins with TEMP and the Override Member name is blank, the job is eligible for temporary JCL processing. If JCL is found in the override library at job start, the member is renamed with a unique name and the schedule record is updated. This prevents the JCL from being reused when the job is scheduled again. Temporary JCL processing is bypassed for DDs that concatenate datasets.
Started Task
Started Task events require no batch JES initiator. Jobs such as CICS or IMS regions are common uses of this event type. Like Batch Jobs, these events are tracked at the step level.
- Started Task Name: Name of the started task defined in a system procedure library. Must be defined to the SAF security product.
- running Parms: Appended to the started task name after a comma to complete the start command (e.g.,
TYPE=WARM). May contain any properties allowed in a Started Task EXEC parameter.
Command
Console Commands can be scheduled to run on the machine defined in the Primary Machine ID entry. Console Command runs have no completion or exit codes. Each command is run as-is without verification of the result.
- Host Job Name: The command is issued from a dynamic started task using the job name.
- Operator Command: Text of the command to run.
The z/OS agent has no method for verifying whether a command is correct or achieved the desired result. The command is always run as defined, and a Finished OK status is always returned to the SAM.
Rexx
REXX procedures require no JCL and can be used for a variety of automation interfaces. The REXX Event functions like a Console Command. The z/OS agent dynamically allocates a print file and runs the program from the designated DD.
- Exec Name: Taken from the job name.
- running Parms: Input parameters required for the REXX procedure.
- Submit DDName: DD Name in the OPCONxx PROC pointing to the library containing the REXX program. Defaults to SYSEXEC.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
Tracked or Queued
Tracked and Queued jobs are identical in terms of job definition and scheduling. Choosing either documents how the job is expected to be submitted; it does not change how the job is scheduled or runs.
- Tracked Job: JCL is submitted to the JES queue from an external source and tracked dynamically by the agent. Should be defined on an OpCon Schedule with no dependencies.
- Queued Job: JCL is submitted to the JES queue from an external source and tracked dynamically by the agent. May have dependencies on other jobs or pre-runs; must arrive in a JES "held" queue or as a
TYPRUN=HOLDjob.
Sysplex
A coupled group of z/OS systems. When a job is scheduled on a machine in a sysplex, its pre-runs or the job itself may run on any system in the sysplex.
- Pre-run System: Select one system for pre-runs or ANY system.
- Submit on any system: Determines whether the job starts on the system where pre-runs were satisfied. If not selected, the job starts on the assigned machine name.
Failure Criteria
Defines a range of successful condition codes for the job. Default is blank (no job-level condition code checks).
- Min CC: Minimum tolerated condition code. Any code below this value is a failure. Must be 0–4095 and less than Max CC.
- Max CC: Maximum tolerated condition code. Any code above this value is a failure. Must be 0–4095 and greater than Min CC.
JCL/SYSOUT Access
Provides access to z/OS JCL and job output listings.
- Member Name: Name of the PDS or PDS/E member containing the JCL.
- View JCL DD: DD name of the library containing the JCL member.
- Save JCL DD: Name of the library to contain the saved JCL (Override DD). Defaults to TEMPJCL.
- View JCL: Fetches JCL from the member identified by View JCL DD and member name, and loads it in a text editor. Selecting OK enables the Save JCL button.
- Save JCL: Uploads JCL from the edit buffer to the host and saves it in the member identified by Save JCL DD and member name, using the current OpCon User ID. The upload fails if the user is not known to the z/OS security system or lacks permission to update the Save JCL library. On success, ISPF member statistics are updated.
Setting the Member Name to the JES JobID and View JCL DD to JESJCLIN fetches JCL from the spool, similar to the SDSF SJ option.
Step Control
Step Control allows up to 80 step condition codes or ranges. Special schedule or run handling can be defined based on the condition code at step completion, or Step Control can override Job Min/Max condition codes. Only the first matching definition is used at the end of each step; define them in priority order. Step Control is not available for Console Command or REXX Event types.
- Step Name: Fully qualified step name in the format
JOBSTEPorJOBSTEP.PROCSTEP. JOBSTEP is the name on a job-level EXEC statement; PROCSTEP is the name on the EXEC PGM statement in a JCL procedure.- Entering only JOBSTEP matches any step in an invoked procedure. To match a specific step, include PROCSTEP.
?matches any single non-blank character;*at the end matches all remaining characters or blank spaces.
- Min CC and Max CC: Return code range this step control definition checks. Both values must be 0–4095; Min CC must be less than or equal to Max CC.
- Step Action: Action taken when the step's return code falls within the defined range.
- Abend Job At Step Termination: Immediately terminates the job. Remaining steps are flushed, but
COND=EVEN/ONLYsteps run. OpCon shows the job as Failed. - Send Job Completed To SAM: Marks the job complete regardless of remaining steps; success or failure is determined by steps up to and including this one.
- Send Trigger Message To SAM: Sends the Trigger Message only.
- Post Error, But Allow Job To Continue: Posts a job failure condition. Subsequent steps run, but job dependencies are not resolved.
- OK To Continue: Overrides job-level failure criteria for this step at this return code range.
- Set Restart Step: Overrides the automatic restart step assignment when a job fails. Enter the failed step name in Step Name and the desired restart step in Trigger Message.
- Abend Job At Step Termination: Immediately terminates the job. Remaining steps are flushed, but
- Trigger Message: Required for Send Trigger Message to SAM, but usable with any Step Action. Up to 20 characters; posted to Schedule Operations and recorded in User Messages agent Feedback.
- Special message formats:
$EVENT=eventname— triggers the named action from the z/OS event trigger table. If the name is not found, the message changes toJEVENT=eventname.$JOB:GOOD— sets the job to Finished OK immediately.$JOB:BAD— sets the job to Failed immediately.$S=jobstep[.procstep]— sets the job's restart step.
- Agent Feedback codes can trigger job events and are the preferred method for defining step triggers, because all event types are supported and events can contain instance properties. Multiple trigger events can be defined for the same message.
- Step completion status is written to the Step Completion agent Feedback table in a fixed format:
- A five-character status code: Cnnnn (condition code), FLUSH (step did not run), Unnnn (decimal abend code), or S-xxx (hexadecimal abend code).
- A space.
- The step name in
execsteporjobstep.execstepformat.
- Automatic restart step selection can be enabled or disabled by prefixing the restart step name:
+— enables auto step flag, then sets restart step from the remainder of the message.-— disables auto step flag, then sets restart step from the remainder of the message.(blank) — does not change the flag; sets restart step from the remainder of the message.- Any other character — sets the restart step from the first character of the message field.
- If the restart step name is blank, this action is a no-op.
- Special message formats:
z/OS Pre-run Definitions
The z/OS agent supports five pre-run types: File Resource, Message Trigger, Job/Task Resource, Tape Devices, and REXX Procedure.
File Resource
Allows up to 80 pre-run definitions for dataset resources.
- Dataset: Up to 44 characters of DSN trigger information. Wildcards are supported:
%matches any single character.- A final
*matches any remaining characters. - A dataset ending in
.G0000V00is treated like.G%%%%V%%but must be a member of a GDG.
- Generations: Number of times the condition must be met before releasing the job. Useful for starting jobs after several GDG datasets have been received.
- Condition: Type of data access condition to trigger: Exists, Created, Updated, Deleted, Referenced, Cataloged, or Uncataloged.
note
Wildcards and generations cannot be used with File Exists conditions.
- When: Whether the trigger remains in effect after the associated event fires.
- While/As Scheduled Only: Deletes the trigger entry once triggered. On the next scheduled run, the trigger is refreshed and waits for new conditions.
- Continuous Monitoring: Resets the generation count and continues monitoring. On the next scheduled run, the trigger may fire immediately if conditions were satisfied again.
- Job Name: Job that must satisfy the condition before a trigger occurs. Prevents reruns or external creations from triggering events intended for a specific job.
note
Job Name does not apply to File Exists conditions.
Message Trigger
Allows up to 80 pre-run definitions for Console Message requirements. Useful for capturing error and threshold indicators and taking automated actions. All message trigger keys must contain a fixed positional keyword and may also contain a second value to scan for in the remaining message text.
- Key: Trigger text to match. The first characters define the fixed text; Offset and Length must be defined to match the key.
- A variable key may follow as a second argument enclosed in brackets (
{}). A preceding hyphen (-) indicates exclusion. - The offset is variable; the length of the text within brackets determines the length.
- If the fixed text is found, OpCon scans for the bracketed text in the remainder. With the exclusion operator, the message matches only if the enclosed text is not found.
- If the fixed text ends with a hyphen, the variable key must be separated from it by a space.
- A space is always required between the fixed key and the opening bracket or hyphen.
- A variable key may follow as a second argument enclosed in brackets (
- Generations: Number of matching messages that must be issued before triggering the event.
- When: Whether the trigger remains in effect after firing.
- While/As Scheduled Only: Deletes the trigger once triggered; refreshed on the next scheduled run.
- Continuous Monitoring: Resets the generation count and continues monitoring; may fire immediately on the next scheduled run if conditions were satisfied again.
- Job Name: Job that must issue this message before triggering. Prevents unintended triggers from reruns or external sources.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
- Offset: Number of leading characters (0–120) to skip when matching the key.
- Limit: Number of characters in the key. Maximum 44 characters.
Job/Task Resource
Allows up to 80 pre-run definitions to check for the existence of a running job or task.
- Job/Task Name: Eight-character name of a batch job, system task, or TSO User ID.
- Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
- Job/Task Must Be: Whether the named task should be Running or Not Running for the event to submit.
Tape Device
Allows a pre-run requiring availability of a specific number and type of tape unit(s).
- Device: Generic or esoteric tape unit as defined by IBM unit standards. Up to 8 alphanumeric characters.
- Units: Number of units that must be available for the job to submit.
REXX Procedure
Allows a REXX event as a pre-run. Unlike the REXX event type, the return code from this procedure must be zero, or the associated job is not submitted.
- REXX Name: Name of the procedure to run. Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
- REXX DD: DD Name in the OPCONxx PROC pointing to the library containing the REXX executable code. Defaults to SYSEXEC. Maximum 8 characters; may contain letters, numbers, and @#$; first character cannot be a number.
- REXX PARAM: Input parameters required for the REXX procedure.
z/OS Restart Definitions
OpCon automates job restarts. Agent defaults are used unless overridden at the job level. Restart controls how XPR handles dataset (DSN) cleanup during a Normal Run and a Restart.
- Duplicate Dataset Actions:
- Normal Run:
- <blank>: Agent defaults are used.
- None: Disables XPR DSN cleanup.
- Scratch: Prevents NOT CATLGD 2 errors by scratching pre-existing datasets.
- Reuse: Prevents NOT CATLGD 2 errors by converting DISP=NEW to DISP=OLD.
- Restart:
- <blank>: Agent defaults are used.
- None: Disables XPR DSN cleanup.
- Scratch: Prevents NOT CATLGD 2 errors by scratching pre-existing datasets.
- Reuse: Prevents NOT CATLGD 2 errors by converting DISP=NEW to DISP=OLD.
- GDG Option: Controls how XPR determines GDG base generations during a restart.
- <blank>: Agent defaults are used.
- None: Disables GDG adjustment.
- Absolute: Resets the base generation to the value it had during the first run.
- Relative: Examines positive relative generations in the steps to be run to determine the correct base.
- Catalog Resync: Examines bypassed steps to find the highest relative generation already created and sets the base to resolve to the current generation.
note
The GDGBIAS=STEP JCL option is not compatible with the Absolute GDG restart option. If used on a restart, GDG bias resolution is not attempted.
- Normal Run:
JCL Substitution
Defines the JCL parameter symbol or OpCon token, separated by double backslashes, to use in this run.
- Use carriage returns to separate lines for readability. Maximum total characters: 3400.
- Each override (
@) or symbolic (&) definition is separated by two backslashes (\\). - When the z/OS agent encounters an
&name=symbolic, it scans each JCL statement for an operand match. &symbolics change operands only. To qualify, an operand must be preceded by a comma or blank and include an=sign (e.g., all instances ofUNIT=xxxxxare substituted using&UNIT=SYSDA).@overrides are placeholders for data;&symbolics replace specific operand data. Symbolics reference operands only.- Overrides can be embedded anywhere in JCL or SYSIN data and can define an entire 80-byte JCL record. They have no restrictions on content or delimiters except they cannot contain double backslashes (e.g.,
@TODAY=October 12, 2005). - Internal OpCon tokens use
[[…]]notation and may be used as data components of either symbolics or overrides (e.g.,@TODAY=[[$DATE]]).
Additional Information for z/OS Job Details
z/OS Job Information
OpCon supports several scheduled event types for z/OS: Batch Jobs, Started Tasks, Dynamic REXX, Operator Command, Tracked Job, and Queued Job.
Batch Jobs
Supported Scheduled Events: Batch Jobs
| Function | Description |
|---|---|
| running | JES initiated batch from JCL in a specific library already defined (by DDName) to the agent. |
| Security |
|
| Event Control |
|
Started Tasks
Supported Scheduled Events: Started Tasks
| Function | Description |
|---|---|
| running | Agent-initiated address space requiring a JCL Proc. |
| Security | Single level: Proc Member Name and its access authority must be defined to the SAF product. |
| Event Control | Provided by JCL statements in a predefined member in the system PROCLIB concatenation and PARMS passed to Proc. |
Dynamic REXX
Supported Scheduled Events: Dynamic REXX
| Function | Description |
|---|---|
| running | Agent-initiated address space. |
| Security | Single level: REXX Exec Name and its access authority must be defined to the SAF product. The userid is assigned by STARTED class resource jobname.jobname. |
| Event Control | Provided by dynamic allocation of SYSEXEC, SYSTSPRT, SYSTSIN, and PARMS passed to REXX Routine. |
Operator Command
Supported Scheduled Events: Operator Command
| Function | Description |
|---|---|
| running | Agent-initiated address space via IEESYSAS. |
| Security | Single level: Command authority must be defined to the SAF product for STARTED class resource jobname.jobname. |
| Event Control | None |
Tracked Job
Supported Scheduled Events: Tracked Jobs
| Function | Description |
|---|---|
| running | JES initiated batch from JCL. |
| Security | Assigned by normal rules during job submission. Not under agent control. |
| Event Control | Provided by JCL submitted from a source external to the agent. |
Queued Job
Supported Scheduled Events: Queued Job
| Function | Description |
|---|---|
| running | JES initiated batch from JCL submitted on hold and released by the agent when all scheduled requirements are met. |
| Security | Assigned by normal rules during job submission. Not under agent control. |
| Event Control | Provided by JCL submitted from a source external to the agent. |
REXX running in OpCon
REXX as a Batch Job
This method is transparent to OpCon. Use Batch TSO or the REXX batch utility (IRXJCL). JCL for running is contained in a JCL member like any production Batch Job. Parameters are hard-coded in the EXEC statement PARM= keyword. Security is provided by the USERID= keyword on the job card. Parms may be altered via OpCon @.
REXX as a Started Task For long-running routines that provide control interfaces or monitoring, a started task (STC) is preferable to a batch job. An STC does not tie up a JES initiator, is more isolated from performance problems, and can remain active with minimal resource consumption. Running REXX as an STC is transparent to OpCon. Use TSO Batch or IRXJCL. Run parameters can be coded in the SAM schedule record "Params" field. Security is provided by the Proc name.
REXX as a Dynamic Task The Dynamic REXX task is initiated by the agent with no JCL or Procs. A separate address space is created and SYSEXEC, SYSTSPRT, and SYSTSIN DDNAMEs are dynamically allocated. The return code is captured and returned to the SAM. Condition code actions can be set. Rules:
- Only a single step runs.
- The SYSEXEC DDNAME concatenation is copied from the running agent task.
- Define any DDNAME in the agent task as a SYSEXEC concatenation.
- SYSTSPRT allocation is assigned to the MSGCLASS defined in XPSPRMxx (default MSGCLASS=A).
- SYSTSIN DD is always dummied.
- All parameters come from "EXEC Params" in the job definition.
- Dynamic REXX events share the advantages of started tasks and require no JCL.
REXX as a Dynamic Pre-run Event A Dynamic REXX routine can be defined to run before a Batch Job or other event. It runs the same as a standalone Dynamic REXX, but the return code immediately triggers (or withholds) a subsequent event in the agent rather than returning to SAM. This enables faster response than SAM dependency processing when immediate action is required.
Tracking Externally Submitted Batch Job Events in OpCon Within the z/OS agent, externally submitted events can be trapped and tracked using three approaches:
- Define a single job name "mask" always trapped by the z/OS agent.
- Define one to eight single-character JES running classes to monitor and trap for tracking.
- Insert a tracking indicator (
TorQ) as the continuation character of the first Job card.
A C continuation character bypasses the TRACLASS and TRACMASK runtime tracking options.
- Add a job step running XPSTRACK.
All approaches can be combined. Define a job mask or JES tracking classes in the XPSPRMxx member of the OpCon Parmlib (XPSPARMS DD in the agent task). The following job illustrates all three setup methods:

- Job Name mask as defined in XPSPRMxx (e.g., TRACMASK=TRAC****).
- A special held class or class list as defined in XPSPRMxx (e.g., TRACLASS=TQA).
- A
Tin continuation column 72 of the first job card (requires multiple continued job cards).
Dynamically tracked jobs may or may not have dependency capabilities. Because their arrival on the schedule may be arbitrary, using them as dependent triggers should be avoided as standard practice.
Every dynamically tracked job must be predefined on the OpCon schedule. If it has no dependencies or resource requirements, it is released immediately. Otherwise, it is released as dependencies or resources are satisfied.
A schedule name token (e.g., @SCHDName) starting in column 59 overrides the AdHoc schedule name default, allowing scheduling through any schedule on OpCon.
The @ character is an indicator flag, not part of the schedule name.
The requested schedule must exist on the current day, or dynamic tracking fails. The "AdHoc" schedule always exists or is added automatically.
When the Q continuation character is used and a schedule name is on the job card, the job is added to the LATEST date with that schedule, helping to link jobs across the midnight boundary.
The default schedule name can be changed from AdHoc using the TRACSCHD parameter in XPSPARMS.
Assigning a Date, Schedule, Job and Frequency to a Job
To assign a Date, Schedule name, Job name, and Frequency, create an event in the ISPF Event table:

- The token name must match the name on the job card.
- The Action Type must be
$JOB. - The Action must be
TRACK. - Only the following fields are used: Element (OpCon job name), Schd Date, Schd Name, and Frequency. Element and Schd Name are required.
In the sample above, a job named TRACJOB is added to the OpCon PRODSCHD schedule on the LATEST date as job name QUEUEDJOB with Frequency Daily.
If a job has both an Event table entry and a job card frequency definition, the job card definition overrides the event table entry.
Prerun Conditions
Pre-run conditions are resource management and triggering functions for scheduled events. When SAM sends the agent a "Start Job" request, that request may include pre-run conditions (for example, a file is needed, a tape drive must be available, or a non-scheduled task must be down). If pre-run resources are available, the agent immediately submits or initiates the associated job, task, or command.
- File Resource: Checks for existence, creation, modification, deletion, reference, or catalog status change of a specific dataset. Can require the condition to be met multiple times before triggering. Can be restricted to the scheduled date of the associated job. The
Deleteoption functions only when JCL containsDISP=(,DELETE,[DELETE]).Referenceapplies to any reference including Open and Close processing; each I/O function counts as one reference. Condition choices: Exists, Created, Updated, Deleted, Referenced, Cataloged, Uncataloged. - Message Trigger: Any message issued to the system log can trigger a scheduled event.
Whenchoices: Continuous Monitoring, While/As Scheduled Only. - Job/Task Resource: Checks for the presence or absence of a job or task by name.
Job/Task Must Bechoices: Running, Not Running. - Tape Units: Checks availability of tape class units by esoteric name or device type. If the check fails, OpCon schedules a retry. Device choices: <User-defined>, 3420, 3423, 3480, 3490, 3590.
- REXX Procedure: Runs a REXX program. A return code of zero allows the job to run. A non-zero return code delays the start.