Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:30 PM UTC

Is there a way to use a reserved COBOL word as a paragraph name?

Problem:

Is there a way to use a reserved COBOL word as a paragraph name?

Resolution:

Yes.  Include the reserved word in the REMOVE list.

Use the compiler directive REMOVE"<reserved-word>".  For example, to use a paragraph name using the reserved word "LEFT-JUSTIFY", use the following compiler directive:  REMOVE"LEFT-JUSTIFY", then name the paragraph "LEFT-JUSTIFY" in the source code.

Old KB# 1558