Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Changing File filed from 2006 to 2008

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
nagarajan.dharani

New User


Joined: 27 Dec 2006
Posts: 36
Location: Chennai

PostPosted: Sun Oct 14, 2007 9:47 pm    Post subject: Changing File filed from 2006 to 2008
Reply with quote

Hi,
Can some one please help me out for my requirement,

I have file and it has a field called year, the year has value 2006. Now I have to cahnge it as 2008.

The foramt is S9(9) COMP.


Thanks,
Dharani N.
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: Sun Oct 14, 2007 10:21 pm    Post subject: Re: Changing File filed from 2006 to 2008
Reply with quote

nagarajan.dharani wrote:
I have file and it has a field called year, the year has value 2006. Now I have to cahnge it as 2008.
The foramt is S9(9) COMP.
Just the 4 digit year in the 9 digit field?
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Mon Oct 15, 2007 3:55 pm    Post subject:
Reply with quote

Hi Dharani,

You can try the below Sort Card

Code:
OUTREC FIELDS=(1,4,CHANGE=(4,X'000007D6',X'000007D8'),
               NOMATCH=(1,4))         


where the year start's at 1st postition

Code:
Input
------
2006
2007
2009
2010

Output
--------
2008
2007
2009
2010



Thanks
Sai
Back to top
View user's profile Send private message
nagarajan.dharani

New User


Joined: 27 Dec 2006
Posts: 36
Location: Chennai

PostPosted: Mon Oct 15, 2007 8:11 pm    Post subject: Reply to: Changing File filed from 2006 to 2008
Reply with quote

Hi Sai,

Thanks a lot for your help. It worked fine for my requirement.


Thanks,
Dharani
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us