John, yours is the sort of answer I was looking for. I will await your "more
tomorrow."

I should have noted what other replies have pointed out: yes, I am familiar
with the various ways of setting LE run-time options. Yes, the CEEOPTS DD
statement route is waaaaay preferable IMHO to slashes in PARM=. Also, the
program has its own ability to accept a parameter ZONE('string') and issue 

setenv("TZ", string, 1);

So I do have several acceptable solutions to setting TZ.

My question is what do I tell the customers that ask "how come you don't get
the time right without us telling you what to do with a parm or DD? Our MVS
programs know what the local time is. What's wrong with your program?" I
want to be able to say "you need to set TZ in _________ as described in
_____________."

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of John McKown
Sent: Thursday, September 05, 2013 7:44 PM
To: [email protected]
Subject: Re: Where environment variables set for batch POSIX programs?

LE parameters in PARMLIB. TZ is a Language Environment variable as well as
UNIX. UNIX will inherit it from LE if not set elsewhere.

At home on tablet. Will reply more from work tomorrow, if nobody else does.
On Sep 5, 2013 8:10 PM, "Charles Mills" <[email protected]> wrote:

> This question is related to my question on timezone_name.
>
> I am responsible for a C++ program that runs POSIX(ON) as a started 
> task in "conventional" MVS.
>
> I observe that at some customers the environment variable TZ (time 
> zone) is set correctly, and that at others it is not set at all.
>
> I search the USS documentation and all I find is information about 
> setting the environment variables if you are a shell user.
>
> For the customers that do not have TZ correctly set (for "MVS" started 
> tasks), what do I tell them to do? "You need to set the TZ environment 
> variable by customizing ____ as documented in _____"?

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

Reply via email to