To generate stubs to call subprograms on the mainframe
-
Identify the
.idy compiled program dictionary file that contains calls to the programs you want to create stubs for.
-
From an Enterprise Developer Command Prompt (32 bit), type the following to invoke the Mainframe Call Generator command line
tool with a single parameter identifying the program
.idy file:
MCGCMD path\filename.IDY
The Mainframe Call Generator window displays all the subprograms called by the programs you selected. Calls with
Not Found in the
Status column are ones where the Mainframe Call Generator could not find the called subprogram.
-
Select the subprograms you want to create stubs for. Each subprogram must take at least one parameter. Mainframe Call Generator
will not generate a stub for a subprogram that does not take parameters.
-
If you want to retain the COBOL source code for the stubs, ensure that
Keep stub program source is checked.
-
Ensure that
Generation directory specifies the folder to contain the generated stubs.
-
Click
Generate.
The stubs are created in the folder specified in the preceding step.
Note: By default, the Mainframe Call Generator window only lists called subprograms that it cannot find. To display all called subprograms,
including those that were found, ensure that
Show all resolved calls is checked.