Thanks everyone for your help. For completeness sake, I am posting here the
information that I have added to our reference manual:

Time Settings

The zArchitecture hardware clock is (if your shop follows best practices)
set to Universal Coordinated Time (UTC, similar to Greenwich Mean Time or
GMT). z/OS uses several independent methods for determining the local time
offset when providing local time services to programs:

.       Most familiar to many shops is the offset in the CLOCKxx member of
the SYS1.PARMLIB concatenation. It is used by the z/OS TIME macro and many
application and system programs.
.       A line like -e TZ=EST5EDT in /etc/init.options, which sets the time
zone for interactive UNIX shell users.
.       The CEEPRMxx member of the SYS1.PARMLIB concatenation, which sets
default Language Environment run-time options. The non-CICS, non-AMODE 64
options are set by the statement CEEDOPT, something like CEEDOPT(...
ENVAR('TZ=CST6CDT'), ...). This is where Language Environment gets the time
zone information that it provides to [the product].

All of the above sources are documented in the IBM manual z/OS MVS
Initialization and Tuning Reference.

The full format of the operand of TZ= is complex, but the simplest form is
ssso or sssoddd, where sss is a standard time zone abbreviation such as EST,
o is the offset in hours from UTC such as 5 for Eastern Standard Time or -1
for Central European Time, and ddd is the daylight or summer time zone
abbreviation such as EDT. Omit ddd if your locale does not observe summer or
daylight time. See the above-referenced IBM manual for more information.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Charles Mills
Sent: Thursday, September 05, 2013 9:10 PM
To: [email protected]
Subject: Where environment variables set for batch POSIX programs?

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 _____"?

Thanks,
Charles 

----------------------------------------------------------------------
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

Reply via email to