View previous topic :: View next topic
|
Author |
Message |
ajayvamsi
New User
Joined: 21 Jul 2005 Posts: 56 Location: Hyderabad
|
|
|
|
Hi all,
any one aware that how to remove all the DISPLAY's in the program with a command.
Please do let me know
thanks
ajay |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If you are using ISPF editor, you can simply:
X ' DISPLAY ' WORD ALL; DEL X ALL
This will delete all lines where the word DISPLAY is present with a space before and after.
O. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you can write an edit macro, which would find the display command and comment the line. (or delete) the macro would have to be sophisticated enough to recognize multi-line objects.
another way would to be use x all, f all 'display'. The interrogate the non-displayed lines following the display command, looking for multi-line display statements. after insuring that all displayed lines are part of the cobol display statements, delete all nx.
I have always coded a comment preceding and following a display statement, then it was easier for my edit macro to find them. |
|
Back to top |
|
|
|