You use the migration help function on a Program or Screen
to see whether there are discrepancies between the Cobol generated
in VA Pac and the locally-generated code.
Before you begin
To be able to use the migration help, you must previously:
- Convert its VA Pac design to its PDP (Pattern Driven Programming)
design available from RDz.
- Generate, in VA Pac, the Macros called by the Program/Screen and
import their corresponding .cblgen files into
the location.
- Generate, with the VA Pac generation procedure, the Cobol file
which contains both the code generated from the design and the specific
code.
- Generate, with the MIA1 VA Pac batch procedure, the Cobol control
file, which only contains the code generated from the design.
- In RDz, open a location (it must be represented by
) from the Design explorer view.
- Right-click on a Program/Screen instance and select Migration
help in the popup menu. This opens a two-page wizard:
- On the first page, you specify the two Cobol files generated
in VA Pac. Then click Finish if you want to
leave the default option related to the constants and the generation
date. When the wizard is opened for the first time, the default option
consists in replaing the constants and date of the VA Pac generated
file with those of the locally-generated file. If you want to check
the default option or modify it, click Next to
access the second page of the wizard.
- On the second page, you indicate whether you want to keep
the Pac constants and date of the VA Pac generated file, and if so,
whether a warning is to be displayed on the corresponding lines. Then
click Finish.
Results
The migration help function copies the two VA Pac generated
Cobol files into the location and generates the local Cobol file.
It compares the content of the control file with that
of the locally-generated file and puts warnings wherever it finds
discrepancies.
To view these warnings, you must open the generated
Cobol file with the PDP LPEX editor. The warnings are displayed directly
on the Cobol lines and in the Problems view.
They remain as long as you do not fix them (three quick fixes are
available) or generate a new code.