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

Convert Gregorian date to Julian format


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krithikaj

New User


Joined: 10 Aug 2008
Posts: 45
Location: India

PostPosted: Tue Sep 28, 2010 11:56 am
Reply with quote

Hi

Can someone help me with sort card that can convert Gregorian date (yyyymmdd) to Julian format using SYNCSORT

Thanks
K J
Back to top
View user's profile Send private message
steve6

New User


Joined: 10 Jul 2007
Posts: 7
Location: Chennai

PostPosted: Tue Sep 28, 2010 1:16 pm
Reply with quote

Hi,

See if the following link helps.

ibmmainframeforum.com/viewtopic.php?f=61&t=2899#p11385
Back to top
View user's profile Send private message
krithikaj

New User


Joined: 10 Aug 2008
Posts: 45
Location: India

PostPosted: Tue Sep 28, 2010 2:04 pm
Reply with quote

Thanks Steve, but is that the only way of doing this; meaning big sort card.

Thanks
K J
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 28, 2010 2:06 pm
Reply with quote

SAS and REXX have good date handling capabilies.
Back to top
View user's profile Send private message
krithikaj

New User


Joined: 10 Aug 2008
Posts: 45
Location: India

PostPosted: Tue Sep 28, 2010 2:08 pm
Reply with quote

But i need to get this job done using SORT.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 28, 2010 2:09 pm
Reply with quote

Looks like you'll have to use a big sort card then icon_rolleyes.gif
Back to top
View user's profile Send private message
prahalad

New User


Joined: 14 Sep 2010
Posts: 18
Location: Pune

PostPosted: Wed Sep 29, 2010 5:48 pm
Reply with quote

Here is the simple sort card to convert Gregorian date (yyyymmdd) to Julian format(YYYYDDD).

Code:

OPTION COPY
INREC BUILD=(1,8,Y4T,TOJUL=Y4T)


Please let me know if you want in any other format.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 29, 2010 8:08 pm
Reply with quote

Hello,

Please post where Y4T is documented for Syncsort.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
Search our Forums:

Back to Top