Page 1 of 1

Compiler option for warning if para is not accessed.

Posted: Mon Sep 14, 2015 1:52 pm
by Salil
Hi,

In a COBOL program there is a paragraph which can not be accessed inside the progam. Basically it's a redundant code. Is there a compiler option with Enterprise COBOL which warns the programmer if a paragraph can not be accessed in the program? I seem to recall there was one but not what was it.

If anyone of you have used it, please help me.

Re: Compiler option for warning if para is not accessed.

Posted: Mon Sep 14, 2015 3:22 pm
by nicc
The COBOL user manual will have it. It decribes the compiling and linking process and, therefore, the options.

Re: Compiler option for warning if para is not accessed.

Posted: Mon Sep 14, 2015 4:03 pm
by William Collins
The OPTimizer will tell you. The manuals will tell you about that.

Note, there is no problem, in itself, with having a paragraph which is not referenced. And with any given data-combination, there may be paragraphs which are not used. The range of values within data-names may "logically" leave a pragraph entirely redundant, which the OPTimize may not/won't be able to spot.