On 2015-06-22 13:39, Kris Buelens wrote:
> 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. ...
>
I don't believe so.  Are you expecting something different from:

     4 *-* address 'COMMAND'
     5 *-* 'PIPE literal /V.R./Preset | varload'
       >>>   "PIPE literal /V.R./Preset | varload"
     6 *-* say symbol( 'V.R.X' ) value( 'V.R.X' )
       >>>   "LIT V.R.X"
LIT V.R.X
     7 *-* say symbol( 'V.R.'  ) value( 'V.R.'  )
       >>>   "VAR Preset "
VAR Preset

???

> ... 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
>
Also, see my recent scolding in this thread concerning misuse of "default".

-- gil

Reply via email to