You are right, and there are other LE functions to perform the
conversions between various character formats and "Lillian seconds" for
adding or subtracting the CEEGMTO value.

Thanks for the help.

Peter

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of Tony Harminc
> Sent: Wednesday, October 29, 2008 3:23 PM
> To: [email protected]
> Subject: Re: Efficient conversion of GMT to/from local time from
COBOL?
> 
> 2008/10/29 Farley, Peter x23353 <[EMAIL PROTECTED]>:
> > 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)?
> 
> CEEGMTO is an LE function that will give you the offset between GMT
> and local time. It is directly callable from COBOL, and there is a
> COBOL example in the LE Programming Reference book. CEEGMTO doesn't do
> the actual conversion, but once you have the offset, you can
> presumably do it yourself in COBOL.
> 
> The overhead should be negligible, since the LE environment is already
set
> up.
> 
> > Or am I barking up the wrong tree because there's
another/better/simpler
> way to do this conversion?
> 
> I think so...
> 
> Tony H.


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

Reply via email to