COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-74
ENV
If a program does not meet the preceding criteria and you try to compile it with the ENV
LIBRARY directive, the compiler reports an error.
If you compile a program with the ENV LIBRARY directive:
•
ASSIGN and PARAM commands for the files in the program are ignored.
•
The compiler does not create data blocks or references to data blocks for the
program. Instead, the operating environment creates these at run time. The
program requires more overhead when called and might execute slightly more
slowly.
ENV and Compatible Programs
Two programs are compatible if one can call the other. A program can call another
program if both programs run in the CRE or if both programs run in language-specific
environments that allow them to call each other.
Table 11-21. ENV Directive and TNS Program Compatibility
TNS program compiled with ... Is compatible with TNS programs compiled with ...
ENV COMMON ENV COMMON
ENV LIBRARY
ENV LIBRARY ENV COMMON
ENV LIBRARY
ENV OLD ENV OLD
No ENV directive
No ENV directive ENV OLD
No ENV directive