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

date help requires - syncsort


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

New User


Joined: 06 Aug 2009
Posts: 17
Location: USA

PostPosted: Wed Feb 24, 2010 5:00 pm
Reply with quote

Hi

I am using syncsort to reformat fields in my input and write on the output file using inrec

i need to reformat the date field as mentioned below
Output field
47:8
MMDDCCYY

Input field
33:8
CCYYMMDD

This has to be done for every input record. (is there any other way apart from the one i am thinking of 47:37,2,49:39,2,51:33,4)

Please help
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Feb 24, 2010 6:37 pm
Reply with quote

What problem do you have with a simple reformat?

If the source is going through a sort utility anyway, a little moving of fields is pretty much free, isn't it?
Back to top
View user's profile Send private message
jammy_27

New User


Joined: 06 Aug 2009
Posts: 17
Location: USA

PostPosted: Wed Feb 24, 2010 6:53 pm
Reply with quote

thats true. icon_smile.gif
I wanted to know if there is any other way to do it likE 4MD
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Wed Feb 24, 2010 7:00 pm
Reply with quote

jammy_27 wrote:
I wanted to know if there is any other way to do it likE 4MD
"4MD"?
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top