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
OPS/MVS ESP WA
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
Reference to the VTLIST command in the ESP WA documentation: