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.:
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:
//MSGDS PROC
//SEND EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SEND 'Test msg from procedure' USER(SYSAD)
//*
JCL Job used to submit and test with (lines in bold being important):
//SYSPROCL JOB EXAMPLE,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//PROCLIB JCLLIB ORDER=TEST2.PROD.PROCLIB
//A100 EXEC MSGDS
//*
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”).
#MFDS
#EnterpriseDeveloper
