RC(-3) Running REXX Program
search cancel

RC(-3) Running REXX Program

book

Article ID: 140668

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Getting this -3 error running a REXX program:

OPT3092O     28 *-*   ADDRESS OPER
OPT3092O     29 *-*   "D T"      
OPT3092O        >L>     "D T"    
OPT3092O        +++ RC(-3) +++   

Environment

Release : 13.0 and 13.5 and above

Component : OPS/MVS

Cause

The return code -3 indicates a command is running on a wrong environment.

In this case the command is an OPS/MVS ADDRESS OPER command that was being run under TSO/REXX instead of OPS/REXX environment/


Resolution

To run a REXX program under OPS/REXX environment the OI or OX command processors must be used.

For example, the rule calling this program should use:

ADDRESS OSF "OI rexx-pgm-name"