How to obtain the value of an ESP vartable variable with OPS/REXX?
search cancel

How to obtain the value of an ESP vartable variable with OPS/REXX?

book

Article ID: 280087

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

We need to check the value of a variable that was put in an ESP global variable table using the VPUT command.

For example:

VPUT somevar TABLE(somevartable) CLANG

Environment

OPS/MVS ESP WA

Resolution

The VTLIST command can be issued from an OPS/REXX program to list the value of a variable.

For example:

waeecmd = "VTLIST somevartable VARS(somevar)"
address ESP                         
"Subsys(ESP);"waeecmd               
say 'RC of cmd 'waeecmd'='rc        
cmdoutlines = QUEUED()             
say 'Collected output for 'waeecmd':'   
do cmdoutlines                       
 pull cmdout                          
 say ' ***>'cmdout                    
end                                  
                                 

Additional Information

Reference to the VTLIST command in the ESP WA documentation:

VTLIST Command: List Global Variable Tables