IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how do we comment set of line in cobol using a command


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandhya rani

New User


Joined: 05 Dec 2006
Posts: 22
Location: hyderabad

PostPosted: Tue Dec 12, 2006 12:12 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Dec 12, 2006 12:47 pm
Reply with quote

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
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Tue Dec 12, 2006 1:03 pm
Reply with quote

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
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Tue Dec 12, 2006 2:50 pm
Reply with quote

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
View user's profile Send private message
sandhya rani

New User


Joined: 05 Dec 2006
Posts: 22
Location: hyderabad

PostPosted: Tue Dec 12, 2006 3:33 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top