Re: UNIX and System time in z/OS
>I will work on all of these answers and see which one works for me. Some thoughts to consider: - Whatever is set in /etc/init.options is only relevant to any process started from /etc/rc (and some of these may even neglect those values, e.g. inetd does not propagate them to clinets logging in through telnet/rlogin). - /etc/profile only becomes active when a login shell is started. Is has no effect on UNIX programs started via JCL EXEC PGM=. - Parmlib member CEEPRMxx gives you the option to set environment variables for the LE environment, which would help all programs written in a high level language. It would not help (probably, I haven't tried) for Assembler programs doing BPX UNIX API calls. >At this time, the /etc and UNIX in general has not been customized. >So I am tackling this process one step at a time. Once I get the >time sorted out, I think I can complete the customization without >any issues. Be sure to read the z/OS UNIX System Services Planing Guide. It has a lot of good information. -- Peter Hunkeler CREDIT SUISSE -- 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
Re: UNIX and System time in z/OS
As always - more than one way to skin a cat. All excellent answers and now I must dig deeper and deeper into UNIX and the /etc folder. I knew about the /etc/profile. I did not know about the /etc/init.options. So many places so little time. And yes, it would be nice if IBM set it up with a single point of customization. I will work on all of these answers and see which one works for me. At this time, the /etc and UNIX in general has not been customized. So I am tackling this process one step at a time. Once I get the time sorted out, I think I can complete the customization without any issues. Lizette > >You may want to code the following in your profile and never have to >worry about time change -- unless of course, some smart (?) politician >decides to push for another change to DST: > >TZ=EST5EDT >export TZ=EST5EDT,M3.2.0,M11.1.0 > > > >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
Re: UNIX and System time in z/OS
Hi Lizette, You may want to code the following in your profile and never have to worry about time change -- unless of course, some smart (?) politician decides to push for another change to DST: TZ=EST5EDT export TZ=EST5EDT,M3.2.0,M11.1.0 Regards, Jasbir Chauhan -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Lizette Koehler Sent: Monday, December 29, 2008 9:29 AM To: IBM-MAIN@bama.ua.edu Subject: 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
Re: UNIX and System time in z/OS
On Mon, 29 Dec 2008 09:37:53 -0500, Lizette Koehler wrote: >No - it is getting GMT. We are EST. > Simple an in adequate answer: Set TZ=EST5EDT (in several places.) Better answer that IBM doesn't support: There should be a single point of maintenance, either in PARMLIB or in STP that controls the final default TZ for both Classic and Unix environments. Best answer, alas NIH to IBM: Linkname: Sources for Time Zone and Daylight Saving Time Data URL: http://www.twinsun.com/tz/tz-link.htm -- gil -- 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
Re: UNIX and System time in z/OS
On Mon, 29 Dec 2008 09:29:19 -0500, Lizette Koehler wrote: >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. > Where are you setting / updating the TZ variable? If you use a format like TZ=CST6CDT (for central time) or TZ=EST5EDT (eastern time), that should take care of having to change it in the spring and fall. You should have this specified in your /etc/init.options and also in /etc/profile. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:mark.zel...@zurichna.com z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.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
Re: UNIX and System time in z/OS
Set TZ to EST5EDT. That should cause it to shift automatically. Larry Gray Large Systems Engineering Lowe's Companies 336-658-7944 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Lizette Koehler Sent: Monday, December 29, 2008 9:38 AM To: IBM-MAIN@bama.ua.edu Subject: Re: UNIX and System time in z/OS No - it is getting GMT. We are EST. Lizette NOTICE: All information in and attached to the e-mail(s) below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message. If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message (electronic, paper, or otherwise). Thank you. -- 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
Re: UNIX and System time in z/OS
<<< 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. >>> This may work: SYS1.PARMLIB(CEEPRM00) ENVAR('TZ=EST5EDT'), /* UNIX Time ZONE */ -- 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
Re: UNIX and System time in z/OS
No - it is getting GMT. We are EST. Lizette -Original Message- >From: Rich Smrcina >Sent: Dec 29, 2008 9:34 AM >To: IBM-MAIN@bama.ua.edu >Subject: Re: UNIX and System time in z/OS > >Lizette Koehler wrote: >> 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 > >Does the date command produce the current local time? > >-- >Rich Smrcina >VM Assist, Inc. >Phone: 414-491-6001 >Ans Service: 360-715-2467 >http://www.linkedin.com/in/richsmrcina > >Catch the WAVV! http://www.wavv.org >WAVV 2009 - Orlando, FL - May 15-19, 2009 > >-- >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
Re: UNIX and System time in z/OS
Lizette Koehler wrote: 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 Does the date command produce the current local time? -- Rich Smrcina VM Assist, Inc. Phone: 414-491-6001 Ans Service: 360-715-2467 http://www.linkedin.com/in/richsmrcina Catch the WAVV! http://www.wavv.org WAVV 2009 - Orlando, FL - May 15-19, 2009 -- 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