DizzyPanda
DizzyPanda
17mo

All About mainframes

Let's Mainframe!

JOBLIB is a DD statement which is a user defined library (we can code many) at job level where load modules of the programs called in the JCL should reside. The JOBLIB should be coded between the Job card and the first EXEC statement. The statement applies to all the steps of the entire job.

However, STEPLIB is coded in each step of the JCL where the load module of that particular program is expected to be present.

It always applies to only that step of the JCL where it is coded and not the whole job.

This can be used at any step in the job and also it can be coded in catalogued procedures.

If both STEPLIB and JOBLIB are coded in a JCL, then STEPLIB gets precedence over JOBLIB.

#jcl #mainframe

17mo ago
SparklyBurrito
SparklyBurrito
17mo

JOBLIB is for the whole job, STEPLIB is for a specific step. STEPLIB overrides JOBLIB. Use them wisely for program libraries in JCL.

Discover more
Curated from across