Created On:  24 April 2012

Problem:

 We are getting compiler errors when using a dialect of Enterprise COBOL in a Report Writer program. We are seeing these error messages: 'COBCH0501S Feature is part of an
optional module - Report Writer' and 'COBCH0502S This entire section is part of an optional module - Report Writer'.  Is there a means past these errors?

Resolution:

This can be accomplished by one of two means:

 - use a dialect of entcobol and add the directive:
     changemessage(0287 w 501 w 502w)
 - use the translated output from the PC Report Writer
   vendor, usually it is from www.spc-systems.com

Please bear in mind that the IBM OS/VS COBOL Compiler provides support for Report Writer that is based on the ANSI68 COBOL Standard even when the mainframe compiler
option of LANGLVL(2) was used - which normally requests ANSI74 support. But there are many cases in which the IBM Compiler actually supports a cross between the two COBOL
Standards. The Micro Focus support for Report Writer adheres to a higher ANSI85 Standard. You will see many ANSI85 Standard references for Report Writer in our documentation.

It is our experience that the areas where IBM lacked in proper error reporting mostly dealt with Report and Page headings and footings. So once you no longer see the 'feature is part of
an optional module' errors, you may still see flagging errors about the actual syntax used in your programs. Review the Header, Detail and Footing lines and make certain the counts
are correct because IBM allowed for very lax definitions.  These instructions apply to Mainframe Express, Net Express, Studio and Server Express.

Incidents #2195337, #2264093, #2360628, #2495830