Product SiteDocumentation Site

6.16. The Return Status (.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 the ERROR or FAILURE condition.

Note

Commands executed manually during interactive tracing do not change the value of .RS. The initial value of .RS is .RS.