Compatibility Directives File

Compatibility Directives File

Modernization projects are created with a directives.dir file.   This file provides a set of Visual COBOL directives to more closely approximate the legacy COBOL compilation and run-time.   Almost all of the directives are to add or remove reserved words.  

Users may find that they need to adjust these directives for their system.   For example, if your code uses METHOD as a data item name, the first time you create modernization tasks you will get a manual serious error task.

Reserved word used as data name or unknown data description qualifier.  Is a reserved word being used as a data item? 

To proceed you may either rename the data item through out your system or remove METHOD as a reserved word in the directives.dir file.


We suggest the latter option.  Insert a remove(METHOD) directive in the directives.dir file.  Delete all of the *.KenlyGen.xml and *.KenlyErr.xml files from your project directory.   Then recreate your task store.   The new compilation will treat METHOD as a data item and not a reserved word.

Labels (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
2 of 2
Last update:
‎2020-03-13 21:04
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.