pTAL Reference Manual (H06.08+)
Compiler Directives
HP pTAL Reference Manual—523746-006
17-8
Saving and Using Global Data Declarations
Saving and Using Global Data Declarations
For the pTAL compiler, these directives allow you to compile and initialize global data
declarations in one compilation and use them in subsequent compilations:
Topics:
•
Saving Global Data Declarations on page 17-9
•
Retrieving Global Data Declarations on page 17-9
•
Examples on page 17-10
•
Migrating from TNS/R to TNS/E on page 17-11
Terms used in the following topics:
Example 17-7. SETTOG, RESETTOG, IF, and ENDIF Directives
?SETTOG (versn1, versn2, 7, 4, 11) ! Turn on toggles
?SETTOG versn3 ! Turn on toggle
?RESETTOG (versn2, 7) ! Turn off toggles
...
?IF versn2 ! Test toggle for on state
PROC version_2; ! Find it off,
BEGIN ! skip procedure
...
END;
?ENDIF versn2 ! End of skipped procedure
Directive Description
SAVEGLOBALS
Saves global data declarations and initial values in one file
USEGLOBALS
Reads global data declarations and initial values saved in a file
BEGINCOMPILATION
Marks the point in the source file where compilation is to begin if
the USEGLOBALS directive is active
Note.
•
The EpTAL compiler does not accept the SAVEGLOBALS or USEGLOBALS directive.
•
The EpTAL compiler ignores the BEGINCOMPILATION directive.
Term Meaning
SAVEGLOBALS compilation The compilation for which you specify SAVEGLOBALS
SAVEGLOBALS compilation file The source file for the SAVEGLOBALS compilation
USEGLOBALS compilation The compilation for which you specify USEGLOBALS
USEGLOBALS compilation file The source file for the USEGLOBALS compilation










