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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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