purge comment and blank line



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

purge comment and blank line

Postby Mehdi shri » Wed Feb 08, 2012 9:16 pm

Dear friends.
How I can delete comment and blank line from a source at a one time? (My means: Not to type D in each line and then press enter)
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: purge comment and blank line

Postby enrico-sorichetti » Wed Feb 08, 2012 9:52 pm

write an edit macro...
or use the sequence
exclude all
find all <what identifies a blank line >
find all <what identies a comment>
del NX all
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: purge comment and blank line

Postby Mehdi shri » Sun Feb 12, 2012 7:54 pm

Mr. enrico-sorichetti
Can you explain more. I'm new in mainframe an TSO.
Thanks.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: purge comment and blank line

Postby enrico-sorichetti » Sun Feb 12, 2012 7:58 pm

ispf PF1 is Your friend

EXCLUDE, FIND, DELETE are ISPF commands and the explanation can be found in the manuals
startin from here
http://publibz.boulder.ibm.com/cgi-bin/ ... s/ISPZPM70
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post