Examples of the ALTLIB command

In the following example, an application issues the ALTLIB command to allow implicit execution of CLISTs in the data set NEW.CLIB, to be searched ahead of SYSPROC:
ALTLIB ACTIVATE APPLICATION(CLIST) DATASET(new.clib)
The application can also allow searching for any private CLISTs that the user has allocated to the file SYSUPROC, with the following command:
ALTLIB ACTIVATE USER(CLIST)
To display the active libraries in their current search order, use the DISPLAY operand as follows:
ALTLIB DISPLAY
To deactivate searching for a certain level, use the DEACTIVATE operand; for example, to deactivate searching for CLISTs on the system level (those allocated to SYSPROC), issue:
ALTLIB DEACTIVATE SYSTEM(CLIST)
And, to reset CLIST and REXX exec searching back to the system level, issue:
ALTLIB RESET

For more information about the search order EXEC uses for CLISTs and REXX execs, see z/OS TSO/E Command Reference.