Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

TSO Command Remove all the DISPLAY's in the program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
ajayvamsi
Currently Banned

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Thu Aug 23, 2007 12:51 pm    Post subject: TSO Command Remove all the DISPLAY's in the program
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: 2360
Location: Israel

PostPosted: Thu Aug 23, 2007 1:26 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us