Getting a RC=-3 when running the REXX program with the ADDRESS SQL host environment:
/* REXX */
job = CICSA
Address Sql
"Select CURRENT_STATE from STCTBL where NAME = '"job"'"
say CURRENT_state.1
say rc
return
Results:
OPS3092H 4 *-* "Select CURRENT_STATE from STCTBL where NAME =
'"job"'"
OPS3092H +++ RC(-3) +++
OPS3092H CURRENT_STATE.1
OPS3092H -3
Release : 14.0
Component : OPS/MVS
Usually this rc -3 occurs when an OPS/REXX program is being executed as a TSO/REXX program.
To execute a REXX program as a OPS/REXX use the OI or OX command processors. For example:
From TSO: TSO OI rexxname.
Or from a rule:
ADDRESS OSF 'OI rexxname'