Previous Topic Next topic Print topic


Specifying a Different Name for a Subprogram

By default, the stub created by the Mainframe Call Generator calls a mainframe subprogram with the same name as the stub. However, if you want the stub to call a program with a name different to that of the stub, the Mainframe Call Generator lets you do this by specifying a different target name in a subprogram's properties. This would be useful if you wanted to call a mainframe program that had an alias on the mainframe environment. For example, to call a program called MQGET on the mainframe, where the program MQGET has an alias called CSQBGET on the mainframe batch environment, you could create a stub called MQGET that called subprogram CSQBGET on the mainframe.

To set the Target name property for the called subprograms, in the Mainframe Call Generator window:

  1. Select the subprogram whose properties you want to change.
  2. Right-click, and select Properties on the popup menu.
  3. Specify the required Target name.
  4. Click OK.
Previous Topic Next topic Print topic