How to use a JCL procedure using JCLLIB statement

How to use a JCL procedure using JCLLIB statement


Problem :

How to use a JCL procedure using JCLLIB statement


Resolution :

First, using a started Enterprise Server JCL Region, setup a catalog entry for the JCL procedure, e.g. as shown below:

(Note: When specifying F and V options for RECFM parameter the procedure file was not found correctly during tests, LSEQ works, this can depend on whether the file is for data or source).
Click Apply to add above entry.

Next, on the Region’s data catalog view, set a filter for the newly created catalog entry, e.g.:img2.png

Next, click on the “TEST2.PROD.PROCLIB” entry, this displays the procedure (this helps to verify the JCL procedure file can be found by the Enterprise Server software, setup is ok), e.g.:


JCL Job and JCL procedure details used for this article:

JCL Procedure (for article file are located in path E: \CATALOG\TESTLIB, file name DELDS.PRC) containing content:
SEND 'Test msg from procedure' USER(SYSAD)

JCL Job used to submit and test with (lines in bold being important):

Finally, Submit the above JCL, the JCL procedure is found, no error shown (if not working likely errors include e.g. “procedure not found or I/O error, file missing/empty”).


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
5 of 5
Last update:
‎2020-01-27 08:35
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.