View previous topic :: View next topic
|
Author |
Message |
anad99
New User
Joined: 26 Sep 2006 Posts: 6
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi anad99,
Is India always come on particular postion or it come any where in the dataset |
|
Back to top |
|
|
anad99
New User
Joined: 26 Sep 2006 Posts: 6
|
|
|
|
Hi Ekta,
String 'INDIA' comes anywhere in the dataset.
anad99 |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
Back to top |
|
|
anad99
New User
Joined: 26 Sep 2006 Posts: 6
|
|
|
|
Thanks Ekta. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|