Set the CLI2EXITLVL environment variable to 1 or 2 to correspond with Level 1 or Level 2 exit routines. CLI decides which Level exits to call based on the following factors:
- Functions not found – If the variable is set to 1 or 2 when the corresponding user exit functions are not found in the library, CLI returns error TDUSRLOADERR(530).
- Variable not set – If the variable is not set, CLI attempts to load the user exit library and symbols, giving preference first to Level 2 functions, then to Level 1 functions. If the variable is not set and no functions are found, the exits are disabled, and CLI returns no error.
- Invalid value – If the variable is set to a value other than 1 or 2, user exits are disabled.