IBM Support

I am using the CICS Transaction Gateway for z/OS (CICS TG) and are having problems with the timezone showing up correctly in the STDOUT log.

Question & Answer


Question

I am using the CICS Transaction Gateway for z/OS (CICS TG) and are having problems with the timezone showing up correctly in the STDOUT log. How do I get the stdout to show the correct time?

Answer

TZ is a USS environment variable which allows mapping of the system time (stored in GMT) to a local time zone. TZ should be set to reflect the local timezone and daylight savings time. The setting should usually reflect the setting of TZ in /etc/profile.

The full format is :

TZ= standardHH[:MM[:SS]] [daylight[HH[:MM:SS:]]] [,startdate[/starttime],enddate[/endtime]] ]

where standard is an abbreviation for the local standard time, for example GMT, EST An example for the UK could be TZ=GMT0BST,M3.5.0,M10.4.0
or for US Eastern could be TZ=EST5EDT
or for Germany could be TZ=MEZ-1MESZ-2,M3.5.0,M10.5.0

You can also set the timezone as an offset from GMT. For example: TZ=GMT-2 TZ=GMT+4

For a further information please refer to z/OS UNIX System Services Command Reference (SA22-7802).

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMJ2","label":"CICS Transaction Gateway"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICSTG CICS TG

Document Information

Modified date:
20 January 2015

UID

dwa1171423