I'm trying to do the following with a script, but I'm having a hard time doing so. I have a COBOL program that I'm looking through to make sure procedures are called correctly, but I'm trying to write a script to automate it.
Example of code I'm trying to find:
Code: Select all
perform j000-main thru j000-exit
go to j000-exit
- Replace GO TO with GO TO PERFORM j000-exit
- Set variable equal to string between GO TO -EXIT, so PERFORM j000
- Log every line containing variable.