Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 408
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: 8188
Location: East Dubuque, Illinois, 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: 1781
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 Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts How to get complete URL from CICS Con... mbattu CICS 1 Tue Nov 14, 2017 11:59 pm
No new posts Integrating CICS applications craig2020 CICS 1 Sun Oct 29, 2017 6:49 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm

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