Return codes

Register 15 contains a return code indicating the success or failure of the request. Possible return codes (in decimal) are:
0
The routine was added to the PreInit table.
4
Non-valid function code.
8
If token was initialized by (init_main) or (init_sub), CEEPIPI(add_entry) was called from a Language Environment-conforming routine.

If token was initialized by (init_main_dp), CEEPIPI(add_entry) was called from a Language Environment-conforming routine that is not running in a (main_dp) environment, or token is already in use for another call to CEEPIPI

12
The routine did not contain a valid Language Environment® entry prolog. Ensure that the routine was compiled with a current Language Environment enabled compiler. The PreInit table was not updated.
16
The token is not valid.
20
The routine_name contains only blanks and the routine_entry was zero. The PreInit table was not updated.
24
The routine_name was not found or there was a load failure; the PreInit table was not updated.
28
The PreInit table is full. No routine was added to the table, nor was any routine loaded by Language Environment.
32
An unhandled error condition was encountered. This error is a result of a program interrupt or other abend that occurred that prevented the preinitialization services from completing.
38
Non-valid entry: A non-XPLINK subenvironment was preinitialized and the program that was being added is an XPLINK program.
42
Non-valid entry: The routine_entry had the high-order bit off indicating this routine is a 24 bit addressing mode routine but the environment is an XPLINK 31-bit environment. This is not valid.