Enterprise Developer includes a lot of enhancements and changes and this is why applications that were compiled using earlier Micro Focus products must be recompiled from the sources using Enterprise Developer.
Micro Focus recommends you first compile without a project as you would have done in Server Express. This will help you focus on resolving any compilation issues following the changes in the environment. Then, you can look at creating a Enterprise Developer project in order to take advantage of all the benefits offered by the IDE.
To compile your existing programs from a terminal window directly on the UNIX machine:
Remember to review and reuse all Compiler directives that were previously used when compiling the application in Server Express.
Most programs created with Server Express should compile cleanly using your existing build scripts and makefiles without any changes to your code, as Enterprise Developer also provides the cob utility to create .int, .gnt or .o files.
Because Micro Focus continues to enhance the COBOL language, you might encounter some problems when compiling your existing Server Express applications in Enterprise Developer.
For example, the list of reserved COBOL words changes with each new level of the COBOL language, so an application created with an older Micro Focus product might use data names that are now reserved keywords in Enterprise Developer. If this happens, a COBOL syntax error COBCH0666 ("Reserved word used as data name or unknown data description qualifier") occurs. See Reserved Words Table in this product help for a comprehensive list of reserved words and the levels at which they are supported.
Also, these Server Express Compiler directives are no longer supported:
|
|
|
You should consider using the following methods to solve such issues:
To use REMOVE from the terminal window (or later in the editor in Eclipse), type the following:
cobol myprogram.cbl remove(title) ;
The command above removes TITLE as a keyword from the language so you can use it as an identifier in a COBOL program.
To use the set of reserved words that was used for Server Express v5.1 WrapPack 5, use this command line:
cobol myprogram.cbl mflevel"15" ;
To set either one of the directives in your source code, type the following starting with $ in the indication area of your COBOL program:
$set remove "title"
Or:
$set mflevel"15"