You can embed the entire logic of the subroutine in the External Action Block. This illustration to the right shows the processing flow for an External Action Block that contains the external subroutine logic.
In the following figure, the calling procedure step ADD_CUSTOMER access the customer history database using an external subroutine. The External Action Block READ_HISTORY defines the views of CA Gen data that is needed by the embedded subroutine, and matches them with the views from ADD_CUSTOMER. The External Action Block READHIST is the CA Gen generated stub that is modified to include all of the logic for the subroutine. READHIST uses the data that is passed from the generated procedure step ADDCUST to process.

|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|