Setting Compiler Options

For best results, the program containing the screen to be imported should first be compiled with the ACUCOBOL-GT Compiler using the -Zw option. This option, which is set through the AcuBench Project Settings dialog box or on the ACUCOBOL-GT command line, causes the compiler to insert information that may be lost during compilation. Such information includes, for example, the names of the variables used to create the screen items. Importing screens without using the -Zw option yields screens that are not as complete as they are when you use the -Zw option.

When compiling, you can also select a mapping option to define how your data names appear in the screen description: in uppercase, lowercase, or mixed case. By default, uppercase data names are displayed. Note that the case transformation occurs only for characters in the ASCII character set (the English alphabet). For characters outside of the ASCII character set, no transformation is performed.

Use the following steps to set the -Zw compiler option:

  1. Use the Project > Settings command to display the Project Settings dialog box. Choose the Compiler tab.
  2. Select Miscellaneous Options in the catalog drop-down box. Check the -Zw option, Prepare for use with the Screen Import Utility.
  3. Select OK to save the setting.
  4. Select Save as Default to save the setting in the default.pof file. These settings are applied to new projects when they are created.

Set mapping options as follows:

  1. Use the Project > Settings command to display the Project Settings dialog box. Select the Compiler tab.
  2. Select Mapping Options in the catalog drop-down box.
  3. Select the option that best fits your needs:
    • -Mu: Names are uppercase
    • -Ml: Names are lowercase
    • -Mm: Names are mixed case: upper for the first letter of each word, lower for the rest
  4. Select OK to save the setting.
  5. Select Save as Default to save the setting in the default.pof file. These settings are applied to new projects when they are created.