Location in the JCL

The ENDCNTL statement immediately follows the one or more program control statements following a CNTL statement. Thus, the ENDCNTL statement can appear in a job step or in a cataloged or in-stream procedure.