Creating functions or subfunctions in Macros
A wizard makes it easy to create specific functions or subfunctions. Its contents depend on the model and the Insertion type you select on the first page.
- Create a function or subfunction
Some functions or subfunctions are independent of any automatic functions or subfunctions. Others are inserted relatively to automatic functions or subfunctions that are specific to a model: Standard or client Dialog or Business Component. The information that is displayed in the wizard varies accordingly. - Insertion relative to the automatic functions of a standard or client Dialog
You must enter information to insert the created subfunction relatively to the automatic functions and subfunctions of the model. This information varies according to the automatic function. - Insertion relative to the 05 hierarchical level in a Business Component
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. - Insertion relative to SQL processing in a Business Component
You can insert specific processing in the SQL clauses WHENEVER and DECLARE CURSOR. These clauses have a 10 hierarchical level. You must insert subfunctions in the specific function (level 05) that you attached to the FSQL block. In the created subfunctions, you can then insert subfunctions with a lower hierarchical level. It is advised to insert them in relative mode because they will be inserted in the subfunctions that depend on the SQL specific function. - Insertion relative to the Logical View processing in a Business Component
The code that is generated for a Logical View is in the program body or in the elementary levels that are run by PERFORM. This code contains the standard processing for the implementation of the services in the Logical View. This standard processing is associated with only one Logical View. To add a specific processing, you must then insert it relatively to a standard processing of the Logical View. It is inserted after the automatically generated tag or associated condition. - Insertion relative to the logical access level in a Business Component
You can insert specific processing in the logical accesses to Segments. These accesses are required to run the services on the Logical View: check, update, and selection. - Replacement of a physical access level in a Screen or Business Component
You can insert specific processing in the function 80 of a Screen or Business Component. This function manages the physical access to Segments. It contains one subfunction for each Segment and access type. You can then create a subfunction of this function to replace a standard access type to a Segment.
Parent topic: Macro COBOL Source editor
Feedback