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
 
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 B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 4 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am

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