It's probably time to invent an "env" stage that gets data from GLOBALV and CP
environment variables rather than making everyone write their own.
Also look closely at the REXX VALUE() bif as it supports setting and getting
GLOBALV variables.
Alan
Sent from my iPhone using IBM Verse
On Dec 25, 2017, 9:01:25 AM, [email protected] wrote:
From: [email protected]
To: [email protected]
Cc:
Date: Dec 25, 2017, 9:01:25 AM
Subject: Re: [CMS-PIPELINES] GLOBALV
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