Getting Started


VisualAge Generator program generation

The generation process uses VisualAge Generator (VAGen) part definitions, which are created using VisualAge Generator Developer and are stored in the repository. The part definitions and control files are used to generate COBOL or C++ programs, depending upon the target environment.

You can generate programs, tables, and maps from the user interface or from the command line using the HPTCMD command.

Figure 25 shows the Generate window where you can select the target system.

Figure 25. Generate package/application

Figure wingener not displayed.

The generation options part enables you to customize the generation process for specific target environments. You can specify generation options using the following methods:

Figure 26 shows the Generation Options window where you set generation options such as validation parameters.

Figure 26. Generation Options

Figure wingnopt not displayed.

Generation options are stored in generation options parts, which enable developers working on the same project to share generation options. You can specify a default generation options part using the /OPTIONS option on the GENERATE subcommand. A generation options part can also specify the /OPTIONS option, creating a succession of generation options parts.

For COBOL and C++ programs, the generation process consists of the following processes:

Generation
Generation includes the following steps:

Validation
Collects definition information from parts for the object being generated. Validation also includes cross-checking the parts to ensure that the definitions are complete and correct. Information and error messages are issued when problems are detected. The generation process stops if there are errors. You can validate the parts without generating the program.

Production
Builds the source code and related program objects from the part definitions during this phase.

Preparation
Preparation includes the following steps:

The generation and preparation processes work together. On the development system, generation produces source code and related program objects. Then, on the target system, the preparation process prepares the generated source to run.

The VisualAge Generator Developer command interface syntax is specified by the command HPTCMD, followed by a subcommand. The VALIDATE subcommand specifies that you want validation only, and the GENERATE subcommand specifies that you want both validation and production. Using the VisualAge Generator Developer command interface, you can issue HPTCMD commands one at a time by specifying them on the command line, or you can create a command file to issue multiple HPTCMD commands.

VisualAge Generator Developer is enabled to the TeamConnection environment to provide TeamConnection functions, such as versioning, change control, problem tracking, and configuration management for VisualAge Generator members. The VisualAge Generator COBOL and C++ generators can be invoked by the TeamConnection build function.

The TeamConnection build environment for generation and preparation consists of the following:

Because a build processor can be CPU intensive, it is recommended that you generate applications on a workstation other than one on which the TeamConnection server is installed and other than a workstation being used to develop and test applications with VisualAge Generator Developer.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]