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: 6968
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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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