Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us