On Thu, 21 Dec 2017 15:24:36 +0000 Gentry, Steve said: >Hi. Is it possible to issue the GLOBALV command from pipes? Or is there a >STAGE to retrieve the info? >I've tried a number of combination of commands with no luck. Those include >"| CMS GLOBALV . . . ." , "| CP GLOBALV . . . ." , "| COMMAND >GLOBALV . . . . " and a couple of things with SPEC. >I could just read the file in a pipe and get what I want but prefer not to. >Thanks, >Steve
Well, if you care about LASTING or SESSION based GLOBALV and only interested in obtaining the value, you could read the file yourself. It's a fairly simple format. (cols 1-8 groupname, 1-byte length of "name", name, 1-byte length of value, and value) It's not an official API, so if IBM ever changes it, (we should be so lucky) you are on your own. That leaves out in-memory GLOBALV which is probably what you want. I thought I had a stage that did something with it, but I can't find it right now. /ahw
