The comparison between JOBLIB and STEPLIB are as:
JOBLIB
- JOBLIB statement is used to identify the location of the program to be executed in a JCL.
- It is specified after the JOB statement and before the EXEC statement.
- It cannot be placed in a cataloged procedure
It's syntax is
//JOBLIB DD DSN=dsnname,DISP=SHR
STEPLIB
- A STEPLIB statement is used to identify the location of the program to be executed within a JOB step.
- It is specified after the EXEC statement and before the DD statement of the job step.
- It can be placed in a cataloged procedure
It's syntax is
//STEPLIB DD DSN=dsnname,DISP=SHR