Previous Topic Next topic Print topic


Generating Code

Explains the processes of generating AMB objects, such as screens, programs, and full applications from both the Enterprise Developer IDE in Eclipse and from the command line.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Generating Objects

You can generate source code for a single object listed on the Program Explorer. Each object generates code as specified by your AppMaster Builder preferences and/or object properties.

Generating Applications

When you generate an application, the AppMaster Builder Generator and Precompiler translate your AppMaster Builder specifications into a complete, executable structured COBOL application.

The generation options you assign regulate how AppMaster Builder generates an application. Options are available for controlling both the Generator and Precompiler, as well as target-specific options.

When AppMaster Builder generates an application, it:

  • Ensures that each component of the application exists.
  • Rearranges program specifications into proper COBOL program organization.
  • Includes externally-defined information that the program references, such as copyfiles and user-defined rules, at the appropriate COBOL program locations.
  • Processes all database and user interface calls and user-defined rules, translating all source to COBOL source.
  • Generates screen symbols for the precompiler and screen source for the data communications user interface.
  • Translates all AppMaster Builder Report Writer source to COBOL source.
  • Writes a temporary error message file and merges it with the COBOL compiler error message file. The combined error message file presents messages sorted by program line number with both types of messages appearing where appropriate.

Generated Source Code Locations

By default, generated source code is saved in the testlib subdirectory of your User Area as specified in your AppMaster Builder preferences. However, you can redirect source code output by checking the Save COBOL, Save GENSRC, or Save MFS / BMS output options. These options redirect source code output to a subdirectory of your Project path. For a list of these subdirectories and their contents, see AMB Libraries and Directories.

You can generate objects and applications from the Enterprise Developer IDE in Eclipse, or from the command line.

Previous Topic Next topic Print topic