You can insert specific processing or replace standard processing in the generated blocks. These blocks have a 05 hierarchical level. These blocks are the Business Component initialization and end blocks, the SQL declarations block, and the Logical View blocks (available on a Macro only). The block and the action type that you select indicate where the specific processing is to be inserted.
You can declare or replace a specific processing in the Business Component. If the specific processing applies to the Logical View block (available on a Macro only), you must identify the impacted Logical View. The instructions must be written on hierarchically lower levels.
All these insertions are identified by ACTION=*C in the Macro code.
In the Macro code, the insertion relative to this type of block is identified by REF=BS.
If several Logical Views are declared in the Business Component, there are as many blocks as Logical Views. If you select this type of block, the Segment code field becomes available. You must enter or select the Logical View type Segment in which you want to insert or replace a processing. The Segment code identifies the position of the specific processing relatively to the standard processing.
In the Macro code, the insertion relative to this type of block is identified by REF=view (where view is the Logical View).
In the Macro code, the insertion relative to this type of block is identified by REF=ES.
In the Macro code, the insertion relative to this type of block is identified by REF=SQ.
To add a specific processing, you must then insert the processing relatively to a standard processing of the block that you select in the Block field. You must select one of the following options to insert the specific processing:
In the Macro code, the positioning of this specific processing is identified by the letter A after the block code (REF=BS A for example). In the Business Component code, it is identified by @BEFORE after the block code.
In the Macro code, the positioning of this specific processing is identified by the letter P after the block code in the Macro code (REF=BS P for example). In the Business Component code, it is identified by @AFTER after the block code.
In the Macro code, the positioning of this specific processing is identified by the letter R after the block code in the Macro code (REF=BS R for example). In the Business Component code, it is identified by @REPLACE after the block code.
In the Macro code, the positioning of this specific processing is not identified by any letter. In the Business Component code, it is identified by a COBOL comment line at the beginning of the PROCEDURE DIVISION. This comment includes the @ATTACH tag (for example *@ATTACH F03=FSQL, where F03 is the specific function that is associated with the FSQL function).