pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Use the BASENAME option only with the PROFGEN optionDependencies:
PROFGENReferences:
BEGINCOMPILATION
NOTE: The EpTAL compiler ignores this directive. See Migrating from TNS/R to TNS/E (page 375).
BEGINCOMPILATION marks the point in the source file where:
• The information saved by the SAVEGLOBALS operation ends
• Compilation is to begin if the USEGLOBALS directive is active.
NoneDefault:
Placement:
• In the source file between the last global data declaration and the first
procedure declaration, including any EXTERNAL and FORWARD
declarations
• Can appear only once in a compilation unit
Applies to all source code that follows it in the compilation unitScope:
Dependencies:
• Has no effect without the USEGLOBALS directive
• If you specify either SAVEGLOBALS or USEGLOBALS, your compilation
unit must have exactly one BEGINCOMPILATION directive
• Interacts with SAVEGLOBALS and USEGLOBALS (see Saving and Using
Global Data Declarations (page 372))
References:
• SAVEGLOBALS (page 413)
• USEGLOBALS (page 423)
BLOCKGLOBALS
BLOCKGLOBALS determines how the compiler allocates global data that is not declared within
the scope of a named data block or the private data block.
The compiler allocates data items in the _GLOBAL and $_GLOBAL data blocksDefault:
Before the first data declaration in a compilationPlacement:
Applies to the compilation unitScope:
NoneDependencies:
If you specify BLOCKGLOBALS, the compiler allocates its own data block for each global variable
that is not declared in the scope of a named data block or the private data block. The name of
the data block is the same as the name of the variable contained in the data block.
382 Compiler Directives