On Fri, 2 Dec 2016 19:59:05 -0600, Paul Gilmartin  wrote:
>
>The documentation in:
> z/OS 2.1.0
>z/OS Language Environment
>z/OS Language Environment Programming Reference
>Language Environment runtime options
>Using the Language Environment runtime options
>ENVAR 
>is dreadful!  It says:
>    ...
>Is specified as name=value, where name and value are sequences of characters 
>that do not contain null bytes or equal signs. The string name is an 
>environment variable, and value is its value.
>
>Blanks are significant in both the name= and the value characters. You can 
>enclose string in either single or double quotation marks to distinguish it 
>from other strings. You can specify multiple environment variables, separating 
>the name=value pairs with commas. Quotation marks are required when specifying 
>multiple variables.
> 
OK.  Code the required quotation marks:
    say BPXWDYN( 'alloc dd(CEEOPTS) new recfm(F,B) reuse msg(WTP)' )
    L.1 = 'ENVAR(TZ="EST5EDT",TESTIT="Wombat")'
    address 'MVS' 'EXECIO 1 DISKW CEEOPTS (finis stem L.'

Dammit!  The quotation marks become part of the value:
    user@OS/390.25.00: echo $TESTIT 
    "Wombat"                        
    user@OS/390.25.00: echo $TZ     
    MST7MDT                         

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to