Previous Topic Next topic Print topic


To Generate Stubs to Call Mainframe Subprograms

To generate stubs to call subprograms on the mainframe

  1. Identify the .idy compiled program dictionary file that contains calls to the programs you want to create stubs for.
  2. 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.
  3. 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.
  4. If you want to retain the COBOL source code for the stubs, ensure that Keep stub program source is checked.
  5. Ensure that Generation directory specifies the folder to contain the generated stubs.
  6. 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.
Previous Topic Next topic Print topic