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
 
REPLACE strings while copying datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anad99

New User


Joined: 26 Sep 2006
Posts: 6

PostPosted: Mon Dec 04, 2006 11:43 am    Post subject: REPLACE strings while copying datasets
Reply with quote

Dear All,
I need JCL to replace strings from input datset to output dataset while copying.
Ex. My input dataset having INDIA as string data. In the output dataset I need as ITALY.

Do any one know what is the utility/options. If any one having similar JCL could you please reply.

Thanks
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1190
Location: Bangalore,India

PostPosted: Mon Dec 04, 2006 11:55 am    Post subject:
Reply with quote

Hi anad99,

Is India always come on particular postion or it come any where in the dataset
Back to top
View user's profile Send private message
anad99

New User


Joined: 26 Sep 2006
Posts: 6

PostPosted: Mon Dec 04, 2006 2:59 pm    Post subject: Re: REPLACE strings while copying datasets
Reply with quote

Hi Ekta,

String 'INDIA' comes anywhere in the dataset.

anad99
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1190
Location: Bangalore,India

PostPosted: Mon Dec 04, 2006 4:03 pm    Post subject:
Reply with quote

Hi Anand,

This topic is already discussed

http://www.ibmmainframes.com/viewtopic.php?t=14500&highlight=replace
Back to top
View user's profile Send private message
anad99

New User


Joined: 26 Sep 2006
Posts: 6

PostPosted: Wed Dec 06, 2006 2:05 pm    Post subject: Re: REPLACE strings while copying datasets
Reply with quote

Thanks Ekta.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Aug 27, 2008 11:24 pm    Post subject:
Reply with quote

You can do this kind of thing quite easily now with DFSORT's new FINDREP function available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008) like this:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  INREC FINDREP=(IN=C'INDIA',OUT=C'ITALY')
/*


For complete details on the new FINDREP function and the other new functions available with PTF UK90013, see:

www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts Replace last name by first name anatol DFSORT/ICETOOL 10 Thu Mar 15, 2018 3:43 pm
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm

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