You can definitely set them by using setenv() from a C program, even if the
C program gets dubbed in a job step (i.e., not run from a z/OS UNIX shell).
I've done this before in the TSO logon proc:
//CEEOPTS DD *
ENVAR("XXX=YYY")
...
//*
I'm not sure that this helps for a dubbed non-LE program though. My use
was with headless CEATSO address spaces, where I was launching a LE program
using a headless ISPSTART PGM(xxxx) TSO command. ENVAR LE options
probably only get picked up when an LE environment program is started.
You might want to look at this RFE (and vote for it) since it probably
addresses the common needs in a more general way:
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=59716
Kirk Wolf
Dovetailed Technologies
http://dovetail.com
On Fri, Dec 2, 2016 at 3:49 PM, Paul Gilmartin <
[email protected]> wrote:
> (Sent earlier to ISPF-L by mistake. Should have gone here.)
>
> Is it possible to set environment variables in a dubbed TSO address space?
> There are several that might be useful: TZ, LC_ALL, ALL_PROXY, ...
> I know the Rexx environment function is unavailable without the OMVS
> function package. Would a C program work?
>
> -- gil
>
> ----------------------------------------------------------------------
> 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