Yes, and yes.  Using the LE date and time routines is definitely cumbersome, but put all the logic in a separate source program, and call it with a function code and a parameter list.  You may be starting with a single function, a single input format and a single output format, but a few extra lines of code will spare you a rewrite when someone decides they want the answer without punctuation, or in MM/DD/YY format.

The coding itself is not rocket science, and writing it in COBOL will make it easier to maintain in the future.

David de Jongh

 

-----Original Message-----
From: CICS List [mailto:CICS-L@LISTSERV.UGA.EDU] On Behalf Of John J. Leonard
Sent: Friday, May 07, 2010 8:31 AM
To: CICS-L@LISTSERV.UGA.EDU
Subject: Convert GMT to U.S Eastern standard time

 

Have an MQ message that contains a time stamp in GMT time and I need to convert it to our local time (i..e  US.Eastern Standard time).
Here is an example of what I am dealing with.


<IAAXML:guidanceTimestamp>2010-05-05T20:45:10.765Z</IAAXML:guidanceTimestamp>
I have done some research and come up with some callable  LE routines.

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

While I  read a recommendation to write it in Assembler (my favorite language to code in) management is going to want this in COBOL.  Has anyone done anything like this am I on the right track

Regards

John J. Leonard
Extension 8249









Westfield Group: Sharing Knowledge. Building Trust(R).






**********************************************************************

This electronic message transmission contains information from a member company of Westfield Group which is privileged, confidential or otherwise the exclusive property of the intended recipient or that member company of Westfield Group. This information is intended for the use of the individual or entity that is the intended recipient. If you are not the designated recipient, please be aware that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this electronic transmission in error, please notify us by telephone at 1.800.243.0210 or by electronically replying to the sender. Then, promptly destroy the original transmission.

**********************************************************************