Generating a Program, Screen, or Server

You can generate a Program, Screen, or Server. If you are connected to the Rational Team Concert™ server, you can also generate an OCX proxy from a Business Component-type Server. You use this proxy to process, in an OCX environment, the services of a Logical View and its associated Business Component

Before you begin

You can decide where the files are to be generated. Refer to the link about the target of the generated files for more explanations.
Note: For the instances that are imported from Pacbase, the skeleton language of the local generation is identical to the Pacbase skeleton language. This piece of information is retrieved from the extraction of the Pacbase models and from the import. It is stored in the Library.

The preference Structure checking before generation management, which is available from Window > Preferences > Pattern Driven Programming > Pacbase Patterns, checks that the nesting of subfunctions in the COBOL code is correct before the generation. By default, it blocks the generation if structuring errors are detected.

Procedure

You can generate instances in different ways:

Results

A progress information message box is displayed until the generation is complete.

The local generation of a Program, Screen, or Server produces the following files:
  • A .cbl file that is nested under the Program, Screen, or Server instance in the Design Explorer view. If you right-click it and select References > Subreferences, the instances that are involved in the generation are automatically displayed in the References view. For explanations on the generated constants, variables, and functions, see COBOL description of a generated Program, Screen, or Server.
  • A map description file for a Screen (.map, .bms, or .mfs) that is nested under the Screen instance in the Design Explorer view.
  • A metadata file of the generated design (.cblpdp) and a metadata file of the map for a Screen (.mappdp, .bmspdp, or .mfspdp). These files can be viewed in the Package Explorer view: They must not be edited but must be assigned the same version number as the other generated files.

To edit the generated .cbl file , right-click it and select Open with > PDP COBOL editor. You access the COBOL editor and views from which you can work on the code.

For an OCX proxy generation, the generation produces a .txt file under the Business Component in the Design Explorer view.


Feedback