The "problem" is that REXX doesn't return default values for stems when you
ask to get all values (using REXXVARS). Not due to PIPE thus.
You can for example include a line /V.R./ in the file VAR VALUES and
then after VARLOAD you'll get the default set too. That line obviously
must be placed before the other /V.R.xxx lines
Note too that you'd better use VARLOAD DIRECT, otherwise: if the exec in
which you use that VARLOAD already defined some contents for R (like
R='fred') then your simple VARLOAD would define V.fred.A and V.fred.B
Kris Buelens,
--- freelance z/VM consultant, Belgium ---
-----------------------------------------------------------------------
2015-06-22 20:12 GMT+02:00 Rick Barlow <[email protected]>:
> I am trying to use PIPE VARLOAD to set stem variable values in an EXEC. If
> I am using simple stem variables, everything seems to work as expected.
>
> Contents of VAR VALUES:
> var1.=0
> var1.A=1
> var1.B=2
>
> 'PIPE|',
> '< VAR VALUES|',
> 'VARLOAD'
> Say var1.A
> Say var1.B
> say var1.C
>
> Result:
> 1
> 2
> 0
>
> However, if I try to use a compound stem variable, the default stem value
> does not get set correctly.
> Contents of VAR VALUES:
> v.r.=0
> v.r.A=1
> v.r.B=2
>
> 'PIPE|',
> '< VAR VALUES|',
> 'VARLOAD'
> Say v.r.A
> Say v.r.B
> say v.r.C
>
> Result:
> 1
> 2
> V.R.C
>
> I get the same results with both the CMS and Runtime versions of Pipelines.
> Has anyone else seen this situation? It looks like a bug but I thought I
> would ask here before opening a PMR.
>
> Thanks,
> Rick Barlow
>