Hi
I have a number of variables in the procedure division in a large number of cobol programs which I want to find and replace. Some of the variables are in one or more programs and some do not occur in a program.
Sample
Top
OverStrikeMode
ColumnModeOff
HexOff
UnixReOff
Find "PROCEDURE DIVISION"
Replace "PROCEDURE DIVISION"
Find "'ACC_AGGRBITS'"
Replace "'FPR3UP46' USING"
Find "'ACC_AGGT_TPR_BITS'"
Replace "'FPR3UP66' USING"
Find "'ACC_AJSTBITS'"
Replace "'FPR3UP47' USING"
....
Several thousand other Find and Replace combinations
....
Find "'ACC_BCFLATRATES'"
Replace "'FPR3UP44' USING"
I am using the first Find "PROCEDURE DIVISION" to establish the point in the code from which all other Find and Replaces should start from. I want each Find and Replace to stop their search once they hit end of file after having started from the "PROCEDURE DIVISION" point. I do not want them to loop to the top and come back down thru.
If any Find does not find what it is looking for I want the rest to continue.
Thanks
Dave
I have a number of variables in the procedure division in a large number of cobol programs which I want to find and replace. Some of the variables are in one or more programs and some do not occur in a program.
Sample
Top
OverStrikeMode
ColumnModeOff
HexOff
UnixReOff
Find "PROCEDURE DIVISION"
Replace "PROCEDURE DIVISION"
Find "'ACC_AGGRBITS'"
Replace "'FPR3UP46' USING"
Find "'ACC_AGGT_TPR_BITS'"
Replace "'FPR3UP66' USING"
Find "'ACC_AJSTBITS'"
Replace "'FPR3UP47' USING"
....
Several thousand other Find and Replace combinations
....
Find "'ACC_BCFLATRATES'"
Replace "'FPR3UP44' USING"
I am using the first Find "PROCEDURE DIVISION" to establish the point in the code from which all other Find and Replaces should start from. I want each Find and Replace to stop their search once they hit end of file after having started from the "PROCEDURE DIVISION" point. I do not want them to loop to the top and come back down thru.
If any Find does not find what it is looking for I want the rest to continue.
Thanks
Dave