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
 
String manipulation to change the date format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: String manipulation to change the date format
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon Mar 09, 2009 5:43 pm    Post subject:
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon Mar 09, 2009 7:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL 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 8 Fri Sep 22, 2017 11:35 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us