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
No new posts RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 1 Wed Mar 29, 2017 12:47 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm


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