By default, Control-M JCL Verify checks program existence using the standard IBM search order rules. However, you can add libraries to the standard search order using the CTJLINK member. This member contains the data set names of the load module libraries that are used for the module existence check (EXEC PGM=pgmname). These libraries will be searched before performing the standard search (STEPLIB/JOBLIB, LPA, LNKLST).
To use this feature:
Example:
//M01A JOB
//EXEC PGM=PWTO
The PWTO program resides in M01.JOBS.LOAD, which is a private library.
In the CTJVER SYSIN file, specify the LINKDD=IOA800 CTJLINK member:
DIV1 DIV1.LOAD IF LINKDD=DIV1, SEARCH ALSO DIV1.LOAD
DIV1DIV1.LOAD1 <- INVALID ENTRY
IOA800 IOAP.V800.LOADE THIS IS A PDSE
IOA800 SYS1.MACLIB THIS IS A SOURCE LIB - WILL BE IGNORED
IOA800 M01.JOBS.LOAD