View previous topic :: View next topic
|
Author |
Message |
blayek
New User
Joined: 04 Nov 2016 Posts: 5 Location: USA
|
|
|
|
Hi,
Is there any way I can convert a Julian Date(in YYYYDDD format) to CICS Abstime format? Let's assume Julian date hours to be taken as 00:00:00.
I know we can do the opposite like getting Julian Date from ABSTTIME using FORMATTIME functions.
Please help.
Thanks, |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I would find the ABSTIME for a fixed date (say 2017001) and then you can add (or subtract) the appropriate number of milliseconds for each day offset from your reference date. Depending upon how sophisticated you want to get, you may adjust for daylight savings time appropriately. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Bhola, you ought to be able to convert your date to an acceptable format by using the LE functions CEEDAYS and CEEDATE. |
|
Back to top |
|
|
|