Products Downloads


French version


 

Level 2 generation

 

These instructions correspond to database access (read file) instructions and to transaction data resetting or loading instructions. The generation of these instructions is done by data flow analysis.

These instructions also control the loading of subfiles.

 

Typical structure

**********************

INITIALIZATION xx

**********************

BEGIN_STD_B

< Generation of the BI-class management rules assigned to the transaction template of the transaction >

END_STD

BEGIN_STD

CHAIN VIEW_A

< Generation of the IE-class management rules for the entity corresponding to the VIEW_A >

PRESENT VIEW_A

< Generation of instruction ot reset to blank or to the default values for the non-subfile fields that are
not linked with the data-flow >

XPGM_NAME = *PGM_NAME

VAR_X1 = *BLANK

VAR_X2 = 'Default value'

< Generation of the IP-class management rules for the non-subfile fields >

< Generation of the CA-class management rules for the non-subfile fields >

ZPROP_X1 = PROP_X2 * PROP_X3

END_STD

CLEAR n

MANAGE_SFL n

BEGIN_STD

< Generation of the IE-class management rules for the entity corresponding to VIEW_B >

PRESENT VIEW_B

< Generation of the instructions to reset to blank or the default values for
the subfile fields that are not linked with the data flow >

VAR_Y1 = *BLANK

VAR_Y2 = 'Default value'

< Generation of the IP-class management rules for the subfile fields >

< Generation of the CA-class management rules for the subfile fields >

ZPROP_Y1 = PROP_Y2 * PROP_Y3

END_STD

UPD_SFL

END_MANAGE_SFL

BEGIN_STD_E

< Generation of the EI-class management rules that are assigned to the transaction template of the transaction >

END_STD

 

Note:
As regards IE, IP and CA-class management rules, the $PROP (properties) are replaced by file field guide words.

As regards variable initialization, the following rules apply:

    • Blank or zero initialization:
      B fields, not used by the data flow and not keys of a data flow view presented in the section.
    • Default value initialization:
      O, B or H fields, not used by the data flow and not keys of a data flow view presented in the section.

Finally, the instructions generated in the initialization section are also related to certain management rules, assigned to properties or entities present in the model.

 

 

Click below for further information about:

 

↑ Top of page

  • Aucune étiquette