The TSO commands supply a return code that provides information about whether command processing has succeeded or failed. It is stored in the TSO’s system variable ("control variable") &LASTCC. A return code other than 0 is generated only if a corresponding message is output at the terminal. These messages are described in the manual "openFT (z/OS) - Installation and Operation".
This return code may have the following values:
Return-Code = 0
:
The command was accepted. (Corresponds, for example, to the message FTR0000 or FTR0008 at the terminal.)
Return-Code = 4
:
The command was accepted with a minor warning, for example if no corresponding administration objects were found.
Return-Code = 8
:
Reserved
Return-Code = 12 (or > 12):
The command was rejected due to an error. The request was not accepted.
The TSO commands can also be started in response to an ftexec command that was started in a remote Unix or Windows partner system. The partner system is sent either the return code 0 (if the command was accepted) or 12 (if the command was terminated with an error).