Executing an OPS REXX Select current_state rc-3
search cancel

Executing an OPS REXX Select current_state rc-3

book

Article ID: 210210

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

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                                                           

                                                            

Environment

Release : 14.0

Component : OPS/MVS

Cause

Usually this rc -3 occurs when an OPS/REXX program is being executed as a TSO/REXX program.

Resolution

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'