View previous topic :: View next topic
|
Author |
Message |
manishram1
New User
Joined: 23 Mar 2006 Posts: 34
|
|
|
|
Hi Everyone,
Can anyone suggest whether there is any method to change a particular string in all the members of a PDS in JCL.
For Example:::
AAA.BBB.CCC has three members in it namely Member1,Member2,Member3
All the members are having a particular string APPLE in any place in it,i want to change it as ORANGE and the result should be stored in another
PDS DDD.EEE.FFF
Mani |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
What have you done so far? It would be helpful to know where specifically you need assistance. Usually, the process of changing a text field from one value to another, especially when it's position in the data is unknown, is best left to an editor. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
You also ca use the old IBM ultility IPOUDATE.
It's not a third party utility, its normaly everywhere in an IBM environment.
With check-parameter you can first control results without updates.
Regards, UmeySan
Example:
//UPDAT1 EXEC PGM=IPOUPDTE,
//* PARM='UPDATE'
// PARM='CHECK'
//?INST1 DD DISP=SHR,DSN=IE31000.ISPF.ISPCLIST
//*INST2 DD DISP=SHR,DSN=IE31000.ISPF.ISPPLIB
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BWS8<MT81<
BWS9<MT91<
//
S=BWS8<S=MT81<
S=BWS9<S=MT91<
SYSAFF=BWS8<S=MT81<
SYSAFF=BWS9<S=MT91<
// |
|
Back to top |
|
|
|