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.
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:
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.
Program properties are stored in an APRPROG member, which is required for successful generation. If no APRPROG member is found during generation, generation fails unless you have set the Use default APRPROG if none found in the AppMaster Builder Output preferences. When set, this option enables successful generation by creating a temporary program property file. By default, all property values in the temporary file are set to system defaults.
However, when no APRPROG member is found during generation and the Use default APRPROG if none found option is turned on, you can override default property values by providing your own set of properties and values in an aprprog.tmpl file. When present, the values set in the template file are used in the generated temporary APRPROG member.
Create an aprprog.tmpl file in any editor; then copy it to the %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\src\template\amb\properties directory.
For more information, see To set AppMaster Builder preferences and Output.
You can generate objects and applications from the Enterprise Developer IDE in Eclipse, or from the command line.