Previous Topic: How OPS/REXX Gets Host Command OutputNext Topic: Security Considerations for Host Commands


Return Codes from Host Commands

When a host command executes, OPS/REXX sets the variable RC to a value indicating whether the command executed without errors or failures. In general, errors are problems that the calling program can probably recover from, and failures are unrecoverable errors. When an abend occurs as a host command executes, OPS/REXX considers the abend to be a failure.