pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
NOEXPORT_GLOBALS
causes the compiler to declare (rather than define) global data blocks.
PUSHEXPORT_GLOBALS
pushes the current setting (EXPORT_GLOBALS or NOEXPORT_GLOBALS) onto the
EXPORT_GLOBALS directive stack. Does not change the current setting.
POPEXPORT_GLOBALS
pops the top value from the EXPORT_GLOBALS directive stack and changes the current setting
to that value.
EXPORT_GLOBALSDefault:
Placement:
• Can appear any number of times in a compilation unit
• Must appear before the first procedure is compiled
• Cannot appear within BLOCK declarations
Applies to the compilation unit, except that NOEXPORT_GLOBALS does not
affect a compilation’s private data block, which is always exported
Scope:
Dependencies:
• You must specify NOEXPORT_GLOBALS when declaring a data block that
belongs to an SRL
• In a compilation that includes USEGLOBALS, the compiler exports the data
blocks declared in the USEGLOBALS declarations file only if
EXPORT_GLOBALS is active when the compiler encounters the
BEGINCOMPILATION directive.
References:
• BEGINCOMPILATION (page 382)
• SRL (page 420)
• USEGLOBALS (page 423)
You can export only whole data blocks. You cannot export individual variables declared within a
data block.
The compiler exports initialization values for variables that specify them. If a data block is not
being exported, the compiler ignores any specified initial values within the block.
You must export every data block in at least one compilation.
__EXT64
__EXT64 directive controls the accessibility of 64-bit addressing functionality support available in
the EpTAL compiler starting with SPR T0561H01^AAP. See Appendix E, “64-bit Addressing
Functionality” (page 531).
Starting with SPR T0561H01^AAP, the corresponding implicitly defined toggle __EXT64 is set on
if the __EXT64 directive is specified, otherwise, it is set off. For example:
-- The ?__EXT64 directive is specified appropriately
-- on the EpTAL compiler command line
?DEFINETOG __EXT64 -- For downward compatibility with
-- compilers that do not support
-- ?__EXT64 and the 64-bit address
-- functionality.
…
?IF __EXT64 -- EpTAL version is SPR AAP or newer
-- and 64-bit functionality is needed.
394 Compiler Directives