H-Series Application Migration Guide (H06.03+)

pTAL Migration Tasks
H-Series Application Migration Guide429855-006
7-2
Removal Required
Removal Required
The following directives are not supported by the TNS/E pTAL compiler and must be
removed or changed as indicated.The pTAL compiler generates an error diagnostic if
any of these directives are encountered in a program.
Removing SAVEGLOBALS and USEGLOBALS Directives
If your TNS/R pTAL program contains SAVEGLOBALS or USEGLOBALS directives,
you must remove them before compiling the program with TNS/E pTAL; however, you
might need to modify your program in order for it to compile correctly. If, after removing
these directives, the program compiles without errors using the TNS/E pTAL compiler,
no further action is needed. However, if compilation errors occur as a result of
removing these directives, you need to modify the source code. The recommended
changes are described in detail in the pTAL Reference Manual. If you make these
changes, the program should compile correctly using either the TNS/R or TNS/E pTAL
compiler.
Directive Notes
SAVEGLOBALS Considered obsolete in TNS/R pTAL. Not supported in TNS/E pTAL.
Remove from program. See the paragraph following this table for
more information.
USEGLOBALS Considered obsolete in TNS/R pTAL. Not supported in TNS/E pTAL.
Remove from program. See the paragraph following this table for
more information.
TARGET The TNS_R_ARCH option is not accepted. A new option,
TNS_E_TARGET, is provided to specify the processor type on which
the object file will run. Note that for native compilation, the target is
always TNS/E.