I have a odd requirement to replace a part of the string that has been found after a search in JCL members.
eg. say in a member WASH we have the following lines.
//
// STATE='WA'
// TYPE='MART'
..
..etc
I have to find the word 'TYPE=' and then replace the last part to say 'U1'
so it should become.
//
// STATE='WA'
// TYPE='MAU1'
..
..etc
or if the input is // TYPE='RITE' it should become // TYPE='RIU1'
the requirement might look straight forward, but the problem is that the position of TYPE= is not definite, it could be anywhere from 5 to 20.
Can anyone suggest a workaround.
I have to use FILEAID, because I have to apply this replace on multiple members of a PDS.
Let me know if there any questions or clarifications required.