JCL Archive

JCL override with examples

JCL override with examples JCL/PROC override is useful when a proc parameters, data sets needs to be modified while executing it. Adding parameters, Nullifying the existing parameters or Overriding the parameters of a PROC are the common overrides that can be done via a JOB. Overriding a DSN: PROC has an input data set and

JOBLIB and STEPLIB

JOBLIB and STEPLIB in JCL both are used to specify the load libraries so that that the programs that are being used in that JCL/JOB are searched in these libraries. Generally z/OS searches for the programs load module in the default system libraries where actually the IBM supplied programs are stored. Specifying JOBLIB/steplib makes the

JCL RESTART Parameter with Examples

This topic covers the JCL Restart parameter with Examples.As the name suggests this is used to Restart a JOB from any particular step instead of starting it from the beginning. This is very useful for the jobs with multiple steps and abends after executing few steps. In this case as few job steps were already

JCL JOB Card Parameters with Examples

JOB Card or Statement in JCL is the first statement which indicates the starting of that JOB. Operating system identifies the beginning of the job using this statement and also it tells the OS on how the job should be processed. This Card can be coded with 20 different Parameters to instruct the operating system

Class Parameter in JCL

CLASS Parameter in JCL is used to categorize the JOBs that runs in one OS installation. During installation itself all Class parameters are defined and assigned with specific attributes. These attributes decides whether or how to run a JOB. As we know all the JOBS submitted runs in an Initiator address space and every class

How to copy a VSAM file to a PS in JCL

Copying a VSAM file into a PS (Physical Sequential) file can be done using the following methods with Examples. 1. Using IDCAMS Repro This is the most frequently suggested method for any VSAM files related tasks. So for copying VSAM to PS also, REPRO can be used. //*************************************************** //* REPRO CUST FILE TO A FLAT

COND Parameter Examples in JCL

COND PARAMETER EXAMPLES in JCL COND parameter in JCL is to execute the JOB steps conditionally. For example if in a JOB, the first Step Unloads the data from a DB2 table and step02 takes that Unload file and filters it using sort and step03 has a cobol db2 program which uses the sort output

How to check whether a sequential file (PS) or VSAM file is empty or not?

Sometimes we may face a requirement to check the file is empty or not, if it is empty stop the process other wise proceed with further steps using JCL. Here are some of the commonly used methods to check whether a Physical Sequential (PS) or VSAM File is empty or not. 1. By Using IDCAMS