Getting message COMMAND CISUB NOT FOUND during Endevor processing

Document ID : KB000100051
Last Modified Date : 27/06/2018
Show Technical Document Details
Issue:
Customer getting message COMMAND CISUB NOT FOUND during Endevor processing
Cause:
CISUB is a CLIST distributed in the Endevor CSIQCLS0 library.

It's a small CLIST that contains a SUBMIT command. Endevor invokes it via ISPEXEC SELECT CMD(%CISUB) whenever it needs to submit a JCL (for example, to submit the GENERATE action to batch after having edited an element) 
 
Resolution:
In order for TSO to find that CLIST, it must be present in the standard CLIST search chain, which is normally set in the TSO LOGON procedure (ddname SYSPROC) or dynamically altered via TSO ALTLIB command when needed. 

The sample Endevor CLISTs contain the following statement to set up the search chain before starting the Endevor dialog: 
ALTLIB ACTIVATE APPLICATION(CLIST) - 
DATASET('IPRFX.IQUAL.CSIQCLS0')

and the following to deactivate the change after having called the dialog: 
ALTLIB DEACTIVATE APPLICATION(CLIST) 

If you are running Endevor from a CLIST, you need to add something similar.

If you are using no CLIST to enter Endevor, you may want to add CSIQCLS0 to your SYSPROC DD in the TSO LOGON procedure.