Set the DIALECT"RM" directive in the project's properties so that it applies to all programs within the project unless you
explicitly override it at the program level.
-
Right-click your project in the COBOL Explorer view and select
Properties.
The
Properties for <project-name> dialog box appears.
-
Select
.
The COBOL settings appear in the right-hand pane.
-
Set
COBOL Dialect to
RM/COBOL.
Tip: If the project contains any variable or literal names that are considered reserved words, you can use the REMOVE Compiler
directive to remove them from the reserved words list, thus allowing them to be used in the code: still in the same settings
pane, in the
Additional directives value cell, click
and in the
Additional directives dialog box, type
REMOVE"<reserved-word>". Repeat this directive for each
<reserved-word>. If you are required to remove a number of reserved words, you could store each REMOVE directive in a directives file (e.g.
rsvdwrds.dir), and then use the USE"
rsvdwrds.dir" directive to apply the directives all at once. This method is ideal if you need to remove the same reserved words from more
than one project.
-
Click
Apply and Close.
The RM/COBOL dialect is applied to any program within the project, unless that program overrides it by setting the DIALECT
directive explicitly within the source code.