Products Downloads


French version


 

This phase corresponds to the automatic generation (provided the level 2 generation option was selected) of the various initialization, verification, validation and softkey process sections.

 

Click here for the detailed explanation of the corresponding 4GL instructions .

 

The generated instructions appear after the level 1 instructions.

 

Access

To run level 2 generation, you must either:

  • Check the Level 2 box in the Programs tab of the Object manager, then click the Generate button.

  • Check the Level 2 box in the Work with a batch program dialog box, then click the Generate button.

  • Choose the Generate level 2 option in the Program menu of the SSG.

  • Choose the Generate level 2 option in the Program menu of the 4GL Editor.

Level 2 generation is automatically started when a program template contains the %GENERATE_L2 Q/A instruction.

 

There are three types of section, each corresponding to the verbs INITIALIZE, VERIFY and VALIDATE. If one of these verbs is applied to a transaction, the corresponding section is generated.

 

A fourth section is automatically generated. This is the SFTKYS_PROCESS section. This section is generated if softkey-class (SK or PR) management rules are requested for one of the transaction's fields.

 

Each section is therefore dedicated to a transaction, and each type of section corresponds to a specific function.

 

Click below for details on instructions generated in the following sections:

Instructions are automatically generated for program beginning and end, as well as in TRANSACTION section instructions.

 

Note: When the level 2 of an "ADELIA" program is generated, the only management rules taken into account are those with an ADELIA or COMMON source type.

 

Typical structure

(beginning of program)

BEGIN_STD_B

< generation of the BP-class management rules assigned to the program, or to the program template of the program >

END_STD

Instructions ...

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

TRANSACTION xx

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

BEGIN_STD_B

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

END_STD

...

BEGIN_STD_E

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

END_STD

Instructions ...

(End of program)

BEGIN_STD_E

< Generation of the EP-class management rules assigned to the program, or to the program template of the program >

END_STD

 

Click below for further information about:

Conclusion

The level 2 generation builds the sections corresponding to a program template that has been defined previously, and includes to the latter all necessary instructions (data flow, subfile management, implicit management rules linked to the data used, etc.).

 

These models do not yet contain the calculation or processing algorithms specific to the program. Nevertheless, they can be generated/compiled and produce a perfectly executable program.

 

You can modify a level 2 model and complete it to obtain the final model.

 

↑ Top of page

  • Aucune étiquette