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

Changing File filed from 2006 to 2008


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Sun Oct 14, 2007 10:21 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top