Page 1 of 1

Quick Comment Code

PostPosted: Thu Oct 11, 2012 7:52 pm
by newjb
I am the only person posting on this site... However, still has been really helpful. Natural must not be used much any more.

Anyways, is there a "quick" way to comment out a huge block of code?

I know you can do line by line --
* USER COMMENT
** USER COMMENT
/* USER COMMENT

http://documentation.softwareag.com/nat ... h_ucom.htm

Say you have 20 lines you want to comment out the entire block quickly.

Is it possible?

Re: Quick Comment Code

PostPosted: Thu Oct 11, 2012 11:43 pm
by dick scherrer
Hello,

I am the only person posting on this site...
Ah, uhh, No . . .

Suggest you look at the amount of traffic across the forum :)

Re: Quick Comment Code

PostPosted: Thu Oct 11, 2012 11:45 pm
by newjb
Sorry, I meant the Natural forum isn't active??

Re: Quick Comment Code

PostPosted: Thu Oct 11, 2012 11:53 pm
by dick scherrer
Hello,

Yes, the Natural part of the forum is active. Post away!

There aren't so many new people with Natural questions.

Everywhere i've been that uses Adabas/Natural have built their own internal knowledge/support base (or sometimes use Software AG support).

Sometime we have more questions than others. If more peopole knew the forums were available there would probably be more activity.

We are quite fortunate that Ralph checks frequently to respond to Natural queries 8-)

Re: Quick Comment Code

PostPosted: Thu Oct 11, 2012 11:57 pm
by newjb
Will do, as it is a huge help to me, Thank you :)

Do you know how to comment out several lines of code at once?

Re: Quick Comment Code

PostPosted: Fri Oct 12, 2012 12:46 am
by dick scherrer
No, but maybe Ralph will be checking soon. Is there nothing in the documentation?

Natural isn't in "my inventory" yet . . .

Re: Quick Comment Code

PostPosted: Fri Oct 12, 2012 12:10 pm
by RGZbrog
The GUI versions (Natural for Windows and NaturalONE (Linux/Unix/Windows)) can do this with two clicks: mark the block of lines + ctrl-m. Unfortunately there is no built-in counterpart in the character-based (i.e. green screen) versions (mainframe and Unix). It is possible to code your own function to do this within the Natural editor, but that's a bit beyond the scope of this forum.

A number of mainframe shops have installed Natural for Windows or NaturalONE to take advantage of the productivity gains offered by the graphical interface. The per-seat cost is not cheap, but it is well worth it, in my opinion. It also helps organizations attract new graduates (who refuse to work with "green screens").

Re: Quick Comment Code

PostPosted: Fri Oct 12, 2012 2:31 pm
by newjb
Hello. We do have GUI versions available, however, not installed in our office yet. They say it is very buggie and they don't want to go there yet. However, it has been 2 years now since I started...you would think the bugs may be worked out more now? I will check in to it again.
Thanks again for your help!!