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: 4
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: 397
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: 8154
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: 1775
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm

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