Hi Lizette,

of course there is a kind of macro to obtain the time stamp with java. But 
I am not sure, if this is what you are looking for. Speaking about the TZ 
shell symbol, you do not need to update this parameter manually. For 
example Appendix I of "z/OS V1R8.0 UNIX System Services Command 
Reference", Document Number SA22-7802-08 gives a good explanation on how 
to set up the symbol TZ correctly. Just allocate the application-specific 
".profile" file (or your personal "~/.profile") and place your TZ 
definition into it. This would override /etc/profile. Well, the one manual 
intervention required is to decide in which time zone you would like to 
work.
Then, you may choose between time zone according to the TZ symbol and CUT 
with the shell command "/bin/date" by (not) coding parameter "-u".

Cheers
Michael





Lizette Koehler <stars...@mindspring.com> 
Gesendet von: IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU>
29.12.2008 15:29
Bitte antworten an
IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU>


An
IBM-MAIN@BAMA.UA.EDU
Kopie

Thema
UNIX and System time in z/OS






running z/OS V1.9 with JAVA in Unix

I would like to know if there is a way to establish the JAVA in UNIX to 
always get the system date and time.  I would like to reduce the need to 
update the TZ parameter each time the time jumps.

I do have an /etc/profile which is fairly basic.  As shipped by IBM. 
However, after reading the configuration manual for UNIX and JAVA, I am 
lost in translation.

Any help is appreciated.

Lizette

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to