Setting local build options for smart logical COBOL and PL/I files

By default, bidirectional-enabled projects use a setting that converts source and executable files to visual layout.

About this task

This setting can cause errors if a source file contains an invisible LRM marker. When the following string is included in a COBOL program, for example, the compiler issues an error message: IGYGR1056, which indicates that the literal exceeds the length that is specified:
Literal declaration that contains bidirectional characters
Although the literal declaration is visually correct, the compiler counts the invisible LRM marker and issues the error message.

Procedure

To prevent this type of error, set local build options as follows:

  1. Open the Local COBOL Build Options or Local PL/I Build Options properties page.
  2. In the Environment Variables field, type the set statement set bidiInput=Logical.
    This statement prevents your source from being converted to visual format before compilation.