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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: how do we comment set of line in cobol using a command
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: 1452
Location: Chicago, IL

PostPosted: Tue Dec 12, 2006 12:47 pm    Post subject: Re: how do we comment set of line in cobol using a command
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    Post subject: Re: how do we comment set of line in cobol using a command
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    Post subject: Re: how do we comment set of line in cobol using a command
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    Post subject: Re: how do we comment set of line in cobol using a command
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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