IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Julian(YYDDD) to CCYY/MM/DDconversion


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shanu.sukoor

New User


Joined: 31 Jan 2006
Posts: 32
Location: India

PostPosted: Wed Feb 14, 2007 11:21 am
Reply with quote

Hi,

I have to write a query to fetch data. But one of the input date values is in julian format - YYDDD. I have to convert into DB2 compatible form CCYY/MM/DD. Is there any function available in DB2 to do that.

Input value is in a host variable. Writing a logic to convert using cobol would take long time.

Please post your replies. Thank you.

Shanu S Sukoor
Back to top
View user's profile Send private message
vijikesavan

Active User


Joined: 04 Oct 2006
Posts: 118
Location: NJ, USA

PostPosted: Thu Feb 15, 2007 11:46 pm
Reply with quote

I am not sure something like that exists. With my little knowledge I tried googling..but couldnot find any answers..
Will be interested to see if you cracked out something. Pls share if you do so.

Thanks,
Viji
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Feb 16, 2007 12:10 am
Reply with quote

Shanu.sukoor wrote:
Input value is in a host variable. Writing a logic to convert using cobol would take long time.
With intrinsic functions, the convert could be done in one statement.
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Mon Feb 19, 2007 12:35 pm
Reply with quote

I believe during installation whatever the date format is set that particular format can be retrived/used.

I think as william said intrinsic functions can be used for this...

Regards,
jr
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Convert Julian to Gregorian DFSORT/ICETOOL 21
No new posts Julian Date to CICS ABSTTIME CICS 3
No new posts HEADER1 and TRAILER1 with Julian date... DFSORT/ICETOOL 3
No new posts SORT to add (replace) date in Julian ... DFSORT/ICETOOL 8
No new posts Julian date to Gregarian date using ... DFSORT/ICETOOL 2
Search our Forums:

Back to Top