Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Julian Date to CICS ABSTTIME

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
blayek

New User


Joined: 04 Nov 2016
Posts: 5
Location: USA

PostPosted: Wed Aug 30, 2017 11:15 pm    Post subject: Julian Date to CICS ABSTTIME
Reply with quote

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
View user's profile Send private message

RahulG31

Active User


Joined: 20 Dec 2014
Posts: 447
Location: USA

PostPosted: Wed Aug 30, 2017 11:44 pm    Post subject: Reply to: Julian Date to CICS ABSTTIME
Reply with quote

CONVERTTIME takes 4 date/time types and convert to ABSTIME.

It doesn't take Julian but if you can covert your Julian to any of the accepted format in CONVERTTIME then you should be done.

Here is the link https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.1.0/com.ibm.cics.ts.applicationprogramming.doc/commands/dfhp4_converttime.html

.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8545
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 31, 2017 12:25 am    Post subject: Reply to: Julian Date to CICS ABSTTIME
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1789
Location: Bloomington, IL

PostPosted: Thu Aug 31, 2017 12:29 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts APCT Abend while running an online CI... amitc23 CICS 1 Wed May 06, 2020 9:59 am
No new posts CICS application timeout steven bynum CICS 3 Thu Apr 30, 2020 7:58 pm
No new posts CICS RACF & DB2CONN AllardK CICS 2 Thu Apr 30, 2020 1:33 am
No new posts trigger enter key automatically call ... Ziko13 CICS 17 Fri Apr 03, 2020 2:53 pm
No new posts Can I use EXEC CICS START instead of ... smenjoge CICS 1 Sat Mar 21, 2020 1:41 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us