COBOl 'with debugging mode'



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

COBOl 'with debugging mode'

Postby bravedreamer » Thu Apr 22, 2010 1:28 pm

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
bravedreamer
 
Posts: 14
Joined: Wed Nov 11, 2009 6:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOl 'with debugging mode'

 

Re: COBOl 'with debugging mode'

Postby Robert Sample » Thu Apr 22, 2010 5:59 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: COBOl 'with debugging mode'

Postby bravedreamer » Fri Apr 23, 2010 12:09 pm

Oh, sorry. I missed this section.

Anyway, thanks for your answer.
bravedreamer
 
Posts: 14
Joined: Wed Nov 11, 2009 6:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOl 'with debugging mode'

Postby Robert Sample » Fri Apr 23, 2010 4:32 pm

Thanks for the reply -- none of us catch everything so missing something isn't unusual.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: COBOl 'with debugging mode'

Postby GuyC » Fri Apr 23, 2010 6:52 pm

just want to mention that DB2 precompiler doesn't care about D's in column 7
GuyC
 
Posts: 315
Joined: Tue Aug 11, 2009 3:23 pm
Has thanked: 1 time
Been thanked: 4 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post