On Thu, 21 Dec 2017 15:24:36 +0000, Gentry, Steve <[email protected]> wrote:
>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 If you know the GLOBALV Group Name you are interested in, I have done commands like this to retrieve and set all the GLOBALV Variables assigned to that Group: 'PIPE COMMAND GLOBALV SELECT group LIST|DROP 1|CHANGE 1.1 / /=/|VARLOAD' You could of course just process the list of Variables, it that's what you want. If you want to retrieve all GLOBALV Variables currently set, then you could do something like this: 'PIPE (NAME GLOBALV ENDCHAR ?)', '| COMAMND GLOBALV GRPLIST', '| SPECS /GLOBALV SELECT/ 1 W1 NW /LIST/ NW', '| COMMAND', '| A: STRFIND /SELECTED_TABLE/', '| SPECS W4 1.9', '| J: JUXTAPOSE', Your processing here! '? A:', '| STRIP', '| J:', '' /* End GLOBALV */ This would retrieve all the GLOBALV Groups defined in your storage, then retrieve all the Variables in each Group and preface them with the Group Name. Also, remember that what is set in storage for GLOBALV is not the same as what is in LASTING GLOBALV file on your A-Disk! -- Dale R. Smith
