Why time is off when using log level +T

General discussion on the JZOS batch launcher and toolkit
Post Reply
RedSox
Posts: 5
Joined: Wed Mar 07, 2007 9:23 am
Location: Tampa, Florida

Why time is off when using log level +T

Post by RedSox »

I was informed by a user that the time is off when using the log level as +T. I can see in the job output the log level message and the time. It isn't until farther down in the log that the time zone variable is set and then the time is actually correct. What do I need to change to make the time correct at the point where the log level message is display in the job output? I am using SDK125 of JZOS with either Java verion 1.4.2 or 5.0 on z/OS 1.7.

IEF376I JOB/SP1JXGJZ/STOP 2007066.0836 CPU 0M
01:36:14 JZOSVM50(N): log level has been set to: T
01:36:14 JZOSVM50(T): -> JzosVM()

01:36:14 JZOSVM50(I): JAVA_HOME=/usr/lpp/java/J5.0
01:36:14 JZOSVM50(I): TZ=EST5EDT
08:36:14 JZOSVM50(I): MANPATH=/usr/man/%L
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Unfortunately, there is not much that you can do. The time will not display correctly until the TZ environment variable is set, which is normally during the processing of STDENV, as you have shown.

One option is to set the TZ environment variable using an LE option (the LEPARM= keyword in the default JZOS proc).

So, something like this might help:

LEPARM='ENVAR(TZ=ZZZZZZ)'
Post Reply