Previous Topic: Member Name RequirementsNext Topic: Modifying the External Action Block Stub


Generating the External Action Block Stub

You can use CA Gen to generate a stub of the COBOL program that implements an External Action Block. The generated stub is a partial COBOL program that includes much of the working-storage and linkage sections that are required to interface with CA Gen-generated programs. Use the stub to help 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.

The stub is stored in the sequential data set:

userid member_name.COBOL

member_name is the name that is specified on the Specify Member Name for Load Module panel. Copy this data set to a library before modifying it to prevent an accidental overwrite and the need to regenerate the stub.

You generate the stub during system generation by accessing the Load Module Expansion Panel for the load module that contains the External Action Block. From this panel, use the code-only option to generate the External Action Block stub. Generating the load module using the G option does not generate the stub.