Issuing a TSO command in ADDRESS TSO gives RC(4)
search cancel

Issuing a TSO command in ADDRESS TSO gives RC(4)

book

Article ID: 258743

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

When issuing a TSO command through an ADDRESS TSO in OPSMVS, customers may receive a RC(4) and not results.

See here a sample:

OPS0997T *-* 2: TRACE I                                            
OPS0997T *-* 4:  ADDRESS TSO                                       
OPS0997T >L>   TSO                                                 
OPS0997T *-* 5:  "LU ABCDE"                                      
OPS0997T >L>   LU ABCDE                                          
IEF196I IGD100I VIO ALLOCATED TO DDNAME SYS00041 DATACLAS (DCDFLT) 
OPS0997T +++    RC(4)                                              
OPS0997T *-* 6:EXIT 

Environment

Release : 14.0

Cause

The error message doesn't adequately identify the reason for the abend.

Resolution

Change the code to the below and see the EDQ message about the command. It will provide information on the error being received:

/* rexx */              
Trace i                 
Address TSO             
     "LU ABCDE"            
Say 'rc: ' rc           
                        
Do while queued() <> 0  
   Pull Line            
   Say  Line            
End                     
                        
Exit  

** end code