The RexxQueryExit return values are:
──────────────────────────────────────────────────────────────────────── 0 RXEXIT_OK Function completed successfully. ────────────────────────────────────────────────────────────────────── 30 RXEXIT_NOTREG Registration was unsuccessful due to duplicate handler and dynalink names ( RexxRegisterExitExe or RexxRegisterExitDll); the exit handler is not registered (other REXX exit handler functions). ────────────────────────────────────────────────────────────────────────