When the HP-3000 compatibility option is enabled, The Kobol compiler supports a subset of the compiler directives.
The $INCLUDE directive includes a file into the compile stream. For better compatibility with HP-3000 cobol, the file searching algorithm will first search the file with the name exactly as entered. If it is not found then a search will be made for the downshifted name, then for the upshifted name, then for the name stripped from group and account information, and finaly for that last name chopped to eight characters.
The $SET and $IF directives allow conditional compilation.
The $CONTROL DYNAMIC, and $CONTROL SUBPROGRAM directives must be used to indicate that a program is a subprogram. When neither of these is specified, then the program is considered to be a main program.
The $CONTROL SYNC16 directive will make sure that SYNCHRONIZED data items are alligned on 16-bit boundaries, in stead of the natural boundaries for the system.
For more information on these directives, refer to the HP-3000 cobol reference manual.