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
 
date help requires - syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: date help requires - syncsort
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: 2150
Location: At my coffee table

PostPosted: Wed Feb 24, 2010 6:37 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Wed Feb 24, 2010 7:00 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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 11 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 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