Compiler option for warning if para is not accessed.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Salil
Registered Member
Posts: 26
Joined: Sat Jul 20, 2013 11:10 pm
India

Compiler option for warning if para is not accessed.

Post 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.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

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

Post by nicc »

The COBOL user manual will have it. It decribes the compiling and linking process and, therefore, the options.
Regards
Nic
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

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

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”