Open topic with navigation

TIBCO® Managed File Transfer Platform Server for z/OS 8.1.0

# Return Code Processing When REXX Execs Are Queued

The Platform Server bases the request return code on two values returned by the REXX command processor.

A return code indicates whether the exec is processed without errors. Sample errors could be syntax errors that are not intercepted by the SIGNAL, or execs that are not defined in the SYSEXEC file. To determine the return code, consider the following two situations:

- If the Platform Server receives a non-zero return code from the REXX command processor, that is the return code that the Platform Server saves.
- If the Platform Server receives a zero return code from the REXX command processor, it scans the data returned by the REXX processor on the EXEC or RETURN statement. Up to 64 bytes of data can be returned and displayed on the REXX exec completion message. The Platform Server checks the first 5 bytes of that message for a return code. The 5 bytes are evaluated in the following manners:
  - If the 5 bytes of data are numeric, the Platform Server converts that data to a return code value.
  - If the Platform Server finds one or more numeric characters followed by a space or a null (0x00), the Platform Server converts that data into a return code.
  - If no numeric data is found (followed by a null or space), the Platform Server assigns a return code value of 0.

Note: The Platform Server assigns a 1-byte value to contain the return code. Therefore, any return code value greater than or equal to 256 is computed by dividing 256 into the return code and assigning the remainder as the return code. Therefore, a return code of 256 becomes a 0 return code, while a return code of 257 becomes a return code of 1.

Copyright © 2003-2021. TIBCO Software Inc. All Rights Reserved.