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

REPLACE strings while copying datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Mon Dec 04, 2006 11:55 am
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
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: 1208
Location: Bangalore,India

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

Hi Anand,

This topic is already discussed

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
Reply with quote

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

DFSORT Developer


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

PostPosted: Wed Aug 27, 2008 11:24 pm
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:

Use [URL] BBCode for External Links
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts To replace jobname in a file with ano... SYNCSORT 12
Search our Forums:

Back to Top