Valid point :) For another wild idea, use ENQ :) > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] > On Behalf Of John McKown > Sent: Wednesday, October 12, 2016 12:28 PM > To: [email protected] > Subject: Re: System REXX and UNIX > > On Wed, Oct 12, 2016 at 2:17 PM, Gibney, Dave <[email protected]> wrote: > > > HLQ (tousercat) .varname.value > > > > What if "value" is does not adhere to a DSN node restrictions? Using > bpxwunix() in a TSO REXX environment seems to be the way to go, at least at > present. I can do things like: > > stdin.0=0 > stdout.0=0 > stderr.0=0 > rc=bpxwunix("echo 'value' > >/usr/SystemREXX/values/GLOBAL.VARNAME",stdin.,stdout.,stderr.); > > rc=bpxwunix("cat > /usr/SystemREXX/values/GLOBAL.VARNAME",stdin.,stdout.,stderr.) > if stdout.0 = 0 then signal NOVALUE > say "value is:"stdout.1 > > rc=bpxunix('rm > /usr/SystemREXX/values/GLOBAL.VARNAME",stdin.,stdout.,stderr.) > > Just seems easier than messing with the z/OS catalog. This seems to work OK. > I just wish that I could do things more directly / efficiently. > > -- > Heisenberg may have been here. > > Unicode: https://urldefense.proofpoint.com/v2/url?u=http- > 3A__xkcd.com_1726_&d=DQIFaQ&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8L > drrvxQb-Je7sw&r=u9g8rUevBoyCPAdo5sWE9w&m=fIHPzrWdnNLkzakE4g6z- > BxzNhlNvt3yr6MFTtXI7O4&s=NizCQvkU4qYZTIK08037_9o7QgWJui59krehTEt > 83Gw&e= > > Maranatha! <>< > John McKown > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > [email protected] with the message: INFO IBM-MAIN
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
