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
 

 

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: 1187
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: 1187
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
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


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