GENERATE REPORT/SUBROUTINE POOL

GENERATE - Generate a program


Incompatible changes or further developments may occur at any time without warning or notice.

Variants:

1. GENERATE REPORT prog.
2. GENERATE SUBROUTINE POOL itab NAME name.

Additions:

1. ... MESSAGE f1
2. ... INCLUDE f2
3. ... LINE f3
4. ... WORD f4
5. ... OFFSET f5
6. ... TRACE-FILE f6
7. ... DIRECTORY ENTRY f7
8. ... WITHOUT SELECTION-SCREEN

Effect

Generates the program specified in the field prog. If the program is a report (i.e. a type 1 program), the selection screen is generated automatically.

Effect

When a syntax error occurs, the error message is stored in this field.

Effect

When a syntax error occurs, the name of the include program concerned is stored in this field.

Effect

When a syntax error occurs, the number of the incorrect line is stored in this field.

Effect

When a syntax error occurs, the incorrect word is stored in this field.

Effect

When a syntax error occurs, the position of the incorrect word in the incorrect line is stored in this field.

Effect

Trace output is stored in this file. This addition automatically activates the trace mode.

Effect

The program attributes required for checking are taken from the field f7. This field must correspond to the structure of the table TRDIR.

Additions:

1. ... MESSAGE f1
2. ... INCLUDE f2
3. ... LINE f3
4. ... WORD f4
5. ... OFFSET f5
6. ... TRACE-FILE f6

The additions have the same meaning as with GENERATE REPORT. Only the addition DIRECTORY-ENTRY is not supported with GENERATE SUBROUTINE POOL because temporary subroutine pools are always generated as type S programs and the arithmetic flag is taken over from the generating program.

Effect

Generates a temporary subroutine pool. The source code for the subroutine pool to be generated is passed on in the internal table itab. The field name contains the name under which FORM routines can be addressed in the temporary subroutine pool via external PERFORM.

In contrast to GENERATE REPORT, the source code is passed on in an internal table with GENERATE SUBROUTINE POOL, not read from the database. The load version generated is not written to the database but held in main memory only.

Temporary subroutine pools belong to the runtime context of the generating program, i.e. to the roll area of the internal mode from which the generation is performed. They may therefore be addressed only within this context, i.e. the generated FORM routines can only be called from within the generating mode.

Related SYNTAX-CHECK