Job Step
Enhanced Definition
An individual program execution within a job, defined by an EXEC statement in JCL. A job can contain multiple steps that execute sequentially. A job step is a distinct unit of work within a z/OS batch job, defined by an `EXEC` statement in Job Control Language (JCL). Each job step is responsible for executing a specific program or utility, performing a particular function, and can include associated `DD` (Data Definition) statements to define its input and output datasets.
Key Characteristics
-
- Single program execution
- Defined by EXEC statement
- Sequential execution within job
- Independent return code
- Up to 255 steps per job
-
Step Components:
- Step Name: 1-8 character identifier
- Program or Procedure: What to execute
- DD Statements: Files and datasets
- Step Parameters: PARM, COND, TIME, REGION
-
Step Execution:
//STEP1 EXEC PGM=SORT //STEP2 EXEC PGM=MYPROG,PARM='OPTION1' //STEP3 EXEC PROC=COMPILE,COND=(0,NE,STEP2) -
Conditional Execution:
- Based on previous step return codes
- COND parameter on EXEC statement
- IF/THEN/ELSE logic
- Bypass step execution
-
Step Return Codes:
- 0: Successful completion
- 4: Warning condition
- 8: Error condition
- 12: Severe error
- 16+: Critical failure
Use Cases
-
- Multi-step processing workflows
- Compile, link, and execute sequences
- Data transformation pipelines
- Conditional processing logic
- Error handling and recovery
Related Concepts
Related to: Job, JCL, EXEC Statement, Program
Related Products
Related Vendors
Related Categories
Automation
222 products
Operating System
154 products
Encryption
41 products
Files and Datasets
168 products