This Knowledge Document explains how to detect loops within a schedule issuing 'Loop Detected' or 'Limit Reached. Loop?'.
CA Jobtrac JM currently offers two methods to detect successor loops:
The 'L' line command and the (sample REXX) Imod LOOPDET as explained below.
//jobname JOB . . . your accounting data . . . //STEP1 EXEC PGM=SRVBATCH,PARM='LOOPDET' //STEPLIB DD DISP=SHR,DSN=your.Jobtrac.CAILIB // DD DISP=SHR,DSN=your.GSS.CAILIB // DD DISP=SHR,DSN=your.DATACOM.CUSLIB // DD DISP=SHR,DSN=your.DATACOM.CAILIB //IMOD DD DISP=SHR,DSN=your.sample.REXX.ISET.file //JOBTRACx DD DUMMY with 'x' as your Jobtrac Token //PARMLIB DD * ADDRESS JOBTRAC GJTRGCUU 15 MAXTASK 5 TYPE 3 //ISRVLOG DD SYSOUT=* //OUTPUT DD SYSOUT=* //