Built-In Environment Objects
REXX provides some other environment objects all programs can use. To access
these built-in objects, you use the special environment symbols whose
first character is `.'.
.rs
.rs is set to the return
status from any executed command (including those submitted with the ADDRESS
instruction). The .rs environment symbol has a value of -1 when a command
returns a FAILURE condition, a value of 1 when a command returns an ERROR
condition, and a value of 0 when a command indicates successful completion.
The value of .rs is also available after trapping of the ERROR or FAILURE
condition.
Note: Commands executed manually while tracing interactively do
not change the value of .rs. The initial value of .rs is 0.
[Back: The Local Environment Object (.local)]
[Next: The Default Search Order for Environment Objects]