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

String manipulation to change the date format


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HozE

New User


Joined: 21 Feb 2007
Posts: 6
Location: Mumbai

PostPosted: Mon Mar 09, 2009 5:14 pm
Reply with quote

Hello all,

I have FB file of RECL 80 bytes
The file has only one field in each record ,i.e date field of pic x(10).
The format for e.g is 18.11.1936

I want the format to be changed to 1936-11-18

There are 100,000 records in the input file.

Can any one their valuable input to resolve this?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Mar 09, 2009 5:43 pm
Reply with quote

Code:
     OPTION COPY
     OUTFIL BUILD=(7,4,C'-',4,2,C'-',1,2,12,69)

Garry.
Back to top
View user's profile Send private message
HozE

New User


Joined: 21 Feb 2007
Posts: 6
Location: Mumbai

PostPosted: Mon Mar 09, 2009 6:49 pm
Reply with quote

Thanks Gary..it worked..and just in time icon_smile.gif
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Mar 09, 2009 7:10 pm
Reply with quote

Quote:
..and just in time


.... don't you just love that?

Glad to have been of help.

GaRRy.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top