You can use Rational® Developer
for System z® to perform
the final transformation into COBOL source code.
About this task
If the system architect who modeled the COBOL programs does
not also have Rational Developer
for System z installed,
the final output of the modeling transformations is the intermediate
file with extension .cobolumlmodel. This file is then shared with
a developer who has Rational Developer
for System z installed
to complete the final transformation into COBOL source code. The final
transformation can be invoked in a couple of different ways.
Procedure
To generate COBOL from Rational Developer for System z, perform either of the following
procedures:
- Use the COBOL Project wizard to create a new COBOL project
in your workspace. To create a new COBOL project in a workspace
that contains the generated source code from the UML-to-COBOL transformation,
complete the following steps:
- Click .
- Complete the new project name and location, and select
whether you want to use the Remote Synchronization feature, then select .
Figure 1. Creating
a new COBOL project
- Click the application template, then click .
Figure 2. Choosing an application
template
- Enter or select the file name of the intermediate file
to use to generate the code. Any file location accessible by the workstation
is accepted; you do not need to first import the file into the workspace.
Figure 3. Generating COBOL programs from UML
- Generate a new COBOL source model file by using the pop-up
menu. To generate COBOL based on a COBOL source model file
that is already in the workspace, complete the following steps:
- Right-click a file name in the Project Explorer view.
- Click the Generate COBOL menu
item from the file's pop-up menu.
- Decide whether to create a new project or generate the
COBOL to the same project where the source mode file is located.
- If you decide to create a new project, enter the project
name and location, and select whether you want to use the Remote Synchronization
feature (similar to using the new COBOL Project wizard with
the UML-to-COBOL template), then click Finish.
What to do next
The project is then created. The COBOL source code is generated
from the intermediate file which is also copied into the new project.
Selecting the Remote Synchronization feature in the wizard in order
to integrate with System z is
recommended. The generated source code can also be copied or moved
into a z/OS® Project for integrating
with System z.