What is JOBLIB, STEPLIB and JCLLIB ?

Chanikya AChanikya A
1 min read

--> In Job Control Language (JCL) for mainframe systems, JCLLIB, JOBLIB, and STEPLIB are DD statements used to specify libraries where the system can find programs to be executed.
--> These statements play a crucial role in the job execution process by guiding the system to the correct location of the load modules.

--> JCLLIB : Specifies a library that contains cataloged procedures.
//JCLLIB DD DSN=SYS1.PROCLIB,DISP=SHR

--> JOBLIB : Specifies a library that contains load modules for programs to be executed in the job.
//JOBLIB DD DSN=MY.LOADLIB,DISP=SHR

--> STEPLIB : Specifies a library that contains load modules for programs to be executed in a specific step of the job.
//STEP01 EXEC PGM=MYPROGRAM
//STEPLIB DD DSN=MY.STEP.LOADLIB,DISP=SHR

When the system searches for a program to execute, it follows this order:

--> STEPLIB: If a STEPLIB is specified for a step, the system searches that library first.
--> JOBLIB: If no STEPLIB is specified or the program is not found in the STEPLIB, the system searches the JOBLIB.
--> System Libraries: If the program is not found in either STEPLIB or JOBLIB, the system searches its default system libraries.

Key points:
* STEPLIB takes precedence over JOBLIB.
* Both JOBLIB and STEPLIB can contain multiple libraries, separated by commas.
* JCLLIB is used for cataloged procedures, while JOBLIB and STEPLIB are used for load modules.

0
Subscribe to my newsletter

Read articles from Chanikya A directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Chanikya A
Chanikya A

8+ years of progressive experience in Mainframe Development, Migration, Enhancement, Maintenance and Support projects. • Extensive Knowledge in requirement gathering, analysis, design, development, implementation, testing, integration deployment, production support, documentation and maintenance of IBM Mainframe applications. • Extensively Design, develop and maintain complex software systems in Mainframe ensuring high quality and timely delivery. • Extensively worked on COBOL, JCL, DB2, VSAM, and CICS. • Extensively worked on Changeman, Endevor, File-aid, Git, DB2 File Manager, Connect Direct, Zeke, Jira, CA7, and Servicenow Tools • Familiarity with mainframe tools such as REXX, TSO, ISPF, and SDSF. • Having Experience in Banking and Healthcare domain. • Having Experience in Linux Shell Scripting. • Having Good verbal, written and interpersonal skills. • Having experience in develop documentation throughout the software development life cycle (SDLC) • Strong experience on co-ordination skills to work with offshore/onshore teams throughout all phases. Operating System : Linux, IBM Mainframe Z/OS, IBM Mainframe MVS, Windows 7 & 10 Programming Languages: COBOL, JCL Database & Access: DB2, CICS, VSAM, SQL Tools and Utilities: IBM IDz,TSO, ISPF,GIT,SDSF, REXX, File-aid, File Manager , Sonarqube, Jira , Servicenow, Rally, Endevor, Changeman, CA7, Zeke, Savrs, and Fault Analyzer Domain : Banking and Healthcare Debugging Tool : Xpeditor Version Control Tools : Endevor , Changeman, and Git Reporting Tools : MS Excel Presentation Tools : MS Power Point Deliverable Methods : Agile and Devops