pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-62
Nesting Levels
Nesting Levels
You can nest SOURCE directives to a maximum of seven levels, not counting the
original outermost source file. For example, the deepest nesting allowed is as follows:
1. The MAIN file F sources in file F1.
2. File F1 sources in file F2.
3. File F2 sources in file F3.
4. File F3 sources in file F4.
5. File F4 sources in file F5.
6. File F5 sources in file F6.
7. File F6 sources in file F7.
Effect of Other Directives
COLUMNS on page 17-62
LIST and NOSUPPRESS on page 17-62
NOLIST on page 17-63
USEGLOBALS and BEGINCOMPILATION (pTAL Compiler Only) on page 17-63
COLUMNS
If a SOURCE directive specifies sections of a file, the compiler honors all COLUMNS
directives in that file that precede the first section of that file. (The first section of the file
might not be the first section of the file that the SOURCE directive specifies.) The
compiler also honors COLUMN directives that appear in the sections that the SOURCE
directive specifies.
After a SOURCE directive completes execution, the value of COLUMNS is restored to
what it was before the SOURCE directive:
File1:
?COLUMNS 80
...
File2:
?COLUMNS 100
...
?SOURCE file1
! COLUMNS is restored to 100 at this point
LIST and NOSUPPRESS
If LIST and NOSUPPRESS are active after a SOURCE directive completes execution,
the compiler prints a line identifying the source file to which it reverts and begins
reading at the line following the SOURCE directive.