View previous topic :: View next topic
|
Author |
Message |
nagarajan.dharani
New User
Joined: 27 Dec 2006 Posts: 36 Location: Chennai
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
saiprasadh
Active User
Joined: 20 Sep 2006 Posts: 154 Location: US
|
|
|
|
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 |
|
|
nagarajan.dharani
New User
Joined: 27 Dec 2006 Posts: 36 Location: Chennai
|
|
|
|
Hi Sai,
Thanks a lot for your help. It worked fine for my requirement.
Thanks,
Dharani |
|
Back to top |
|
|
|