View previous topic :: View next topic
|
Author |
Message |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi,
I wanted to comment set of lines in cobol by giving some command jus like if at all we wnated to move set of lines by 8 positions we give )) at start of the block and at end of block we give ))8.in similar way please let me know if there is any shortcut command exists for commenting the lines in mainframes cobol program.
Thanks & Regards
Sandhya Rani |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
If you have that set of lines (to be commented) in a stretch... You can first copy that piece of code to another dataset by using "CC" & CUT.
In the new dataset, give following command to put a "*" at 7th column.
C ALL P"=" "*" 7
Now this commented code is ready to be moved back to original position. |
|
Back to top |
|
|
Rajen
New User
Joined: 05 May 2005 Posts: 61
|
|
|
|
Hi Sandhya,
As such there is no command to comment out set of lines using a command.
one solution is you can write a piece of code in REXX or CLIST.
Thanks,
Rajen. |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
hey
u can give labels to the set of code.... like give .A at the start and .B at the end of the set u want to comment.
then give the following command.
c all ' ' '*'p 7 .a .b
i think this will help..... |
|
Back to top |
|
|
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi Raak,
heah this solution worked thankx a lotzzz for the solution......
Thanks & Regards
Sandhya Rani
raak wrote: |
hey
u can give labels to the set of code.... like give .A at the start and .B at the end of the set u want to comment.
then give the following command.
c all ' ' '*'p 7 .a .b
i think this will help..... |
|
|
Back to top |
|
|
|