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.
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 bloc, 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.
- Blocks
- The following blocks are generated with a 05 hierarchical
level:
- Business Component initialization: This
block retrieves the information that is contained in the communication
area and carries out initializations. The insertion
relative to this type of block is identified by REF=BS in
the Macro code.
- Logical View: 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. The insertion
relative to this type of block is identified by REF=view (where view is
the Logical View) in the Macro code.
- Business Component end: This block returns
the information to the client. The insertion
relative to this type of block is identified by REF=ES in
the Macro code.
- SQL cursors declarations: This block describes
the clauses that are required for the SQL declarations. The instructions must be written on hierarchically lower
levels. The insertion
relative to this type of block is identified by REF=SQ in
the Macro code.
- Action type
- Specific processing is inserted in a Business
Component relatively to the standard generated processing. You can
then benefit from the generated processing and adapt it to your needs.
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:
- Insert before a standard processing. The
specific processing is inserted before the start tag of the standard
processing. The positioning of this specific processing is identified
by the letter A after the block code in the Macro
code (REF=BS A for example).
- Insert after a standard processing. The
specific processing is inserted before the end tag if the hierarchical
level is greater than the level of the standard processing. It is
generated after the end tag if the hierarchical level is identical
to the level of the standard processing. 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).
- Replace a standard processing. 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).
- None. This option is specific to an insertion
in a Logical View block or a SQL
cursors declarations block. You select it to manage the
positioning of the function in specific code. The positioning of this
specific processing is not identified by any letter in the Macro code.