IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TSO Command Remove all the DISPLAY's in the program


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajayvamsi

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Thu Aug 23, 2007 12:51 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 23, 2007 1:26 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 23, 2007 1:28 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top