Previous Topic: Generate and Compile the Module

Next Topic: Add the Module to the Service Program

Create a Service Program

In the CA 2E model, you define a Service Program (*SRVPGM) function type, which you will then use with the module. You can customize the source member name, which is then used for the final *SRVPGM object name.

Follow these steps:

  1. From EDIT DATABASE RELATIONS take option F against the Order detail file to access the EDIT FUNCTIONS screen.
  2. Create a Service Program and complete the fields as follows:
    Function:

    Order srvpgm

    Function Type:

    Service Program

    Access path

    *NONE

A Service Program does not contain parameters or an action diagram, so you must add the module in the following procedure.