How to comment multiple lines in cobol



How to comment multiple lines in cobol

Postby aravindmainframe » Thu Jun 26, 2008 1:46 pm

hi to all
how to comment multiple lines in cobol,suppose my program having 1000 lines imagine i want to comment line from 100th line to 225th line how can i do this with a single command.or i want to put "*" in all the lines from 100 to 225....
i think its very tedious......can anyone tell me plz........

thanks in advance....
aravindmainframe
 
Posts: 1
Joined: Thu Jun 26, 2008 1:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol

Postby jayind » Thu Jun 26, 2008 2:55 pm

lable the 100th line as .A (on 100th line type .A on the left side numbering) and 225 line as .B and execute the following command at prompt

C ALL ' ' '*' 7 .A .B

If single quotes doesnt work then try with double quotes
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time


Return to Interview Questions

 


  • Related topics
    Replies
    Views
    Last post