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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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