Visual COBOL 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 Visual COBOL.
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 Visual COBOL 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:
Most programs created with Server Express should compile cleanly using your existing build scripts and makefiles without any changes to your code, as Visual COBOL 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 Visual COBOL.
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 Visual COBOL. 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"