Thanks John. I didn't realize that the LE date conversion subroutines were so flexible. These should do the trick.
Thanks for the pointer! Peter > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On > Behalf Of John McKown > Sent: Wednesday, October 29, 2008 3:19 PM > To: [email protected] > Subject: Re: Efficient conversion of GMT to/from local time from COBOL? > > On Wed, 29 Oct 2008 15:04:46 -0400, Farley, Peter x23353 > <[EMAIL PROTECTED]> wrote: > > >Hi all, > > > >A question has been asked of me to which I think I know the answer, but > >not how (in)efficient it would be: > > > >Is there a z/OS-supplied function to convert GMT to local time (or back > >again)? > > > > Yes. Look in the Language Environment manual, > > http://publibz.boulder.ibm.com/cgi- > bin/bookmgr_OS390/BOOKS/CEEA3100/CCONTENTS > > watch out for the wrap!! > > CEECBLDY will convert various "character" representations of dates into > "COBOL Integer Date" formats. > > CEEGMTO will tell you the difference between GMT and LOCAL time. > > CEESECS will convert date+time to a timestamp in "Lilian" seconds (since > 00:00:00 14 Oct 1582) which you can then manipulate and convert back. > > -- > John > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

