HumbleTachometer
HumbleTachometer

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

1mo ago
Discover more
Curated from across