Creating Stubs

The process for generating and using stubs to run programs on a mainframe is as follows:

  1. Carry out the steps in the section Preparations, to make sure that your environment is set up correctly and that your programs are suitable for use with the Mainframe Call Generator.
  2. Specify the program containing the subprograms you want to create stubs for. Note that Mainframe Call Generator will not generate a stub for a subprogram that does not take at least one parameter.
  3. Create the stubs using the Mainframe Call Generator window.
  4. Run your program as normal. When a subprogram with a generated stub is encountered, control is passed to the subprogram on the mainframe, which executes, then control returns to your program.