Page 1 of 1

COBOl 'with debugging mode'

PostPosted: Thu Apr 22, 2010 1:28 pm
by bravedreamer
Hey guys!

I've a question according to the 'with debugging mode' entry in the configuration section of a COBOL program: does the IBM compiler remove all those statements, which are classified with a 'D' on column 7 if the keyword 'with debugging mode' is absent?

According to the output of the compiler, it doesn't. But I can see there also my comments, so I'm unsure about the behavior.

BTW I'm using the "IBM Enterprise COBOL for z/OS 3.4.1" compiler.

thanks for your help

Re: COBOl 'with debugging mode'

PostPosted: Thu Apr 22, 2010 5:59 pm
by Robert Sample
The COBOL Language Reference manual should be your first reference for such questions. It says (emphasis added by me):
WITH DEBUGGING
MODE When WITH DEBUGGING MODE is specified, all debugging sections and debugging lines are compiled.

When WITH DEBUGGING MODE is omitted, all debugging sections and debugging lines are treated as comments.

Re: COBOl 'with debugging mode'

PostPosted: Fri Apr 23, 2010 12:09 pm
by bravedreamer
Oh, sorry. I missed this section.

Anyway, thanks for your answer.

Re: COBOl 'with debugging mode'

PostPosted: Fri Apr 23, 2010 4:32 pm
by Robert Sample
Thanks for the reply -- none of us catch everything so missing something isn't unusual.

Re: COBOl 'with debugging mode'

PostPosted: Fri Apr 23, 2010 6:52 pm
by GuyC
just want to mention that DB2 precompiler doesn't care about D's in column 7