Previous Topic: Generate Both Code and ScreenNext Topic: Recompile Code


Generate an External Action Block Stub

When you select C for an external action block component in the Load Module Expansion panel, CA Gen generates the stub of the program that implements an external action block. The generated stub is a COBOL source listing that includes the view definitions that are required to interface with CA Gen generated programs. The stub is stored in the sequential data set:

prefix.stubname.COBOL

Where prefix is the value that is entered in the TIUPREF variable during host installation. The stub helps you write external action block code that interfaces correctly with CA Gen generated code. It serves as a base to which you add the external action block logic.

Follow these steps:

You can generate the stub from the Load Module Expansion panel for online or batch load modules. This example is for batch load modules.

  1. On the Application System Construction menu, type 1 for the Generate business system option and press Enter.

    CA Gen displays the Generate Business System panel listing the online load modules, server load modules, and batch jobs in the business system.

  2. Type an E in the column next to a batch job name and press Enter.

    When the batch job contains multiple batch load modules, CA Gen displays the Batch Job Expansion panel listing the batch load modules.

    or

    When the batch job contains only one batch load module, CA Gen displays the Batch Load Module Expansion listing the batch load module's components.

  3. Override the default values for this generation, if necessary, and press Enter to continue.

    When the Present confirmation panel option is set to Yes in the Generation Options panel, CA Gen displays the Confirm Generation of Load Module panel.

  4. Press Enter to accept the parameters or click Cancel to return to the options panel.

    CA Gen displays the Generation Status panel when you selected processing in the foreground.

  5. Press Exit to exit the Generation Status panel when generation completes.
  6. When the Present JCL option is set to Yes in the Generation Options panel and you selected processing in the background, CA Gen displays the Update JCL for Background Generation panel.

    Make the changes and press Enter to submit the job.

More information:

External Action Blocks