COBOL Manual for TNS and TNS/R Programs

Compiler Directives
HP COBOL Manual for TNS and TNS/R Programs522555-006
36-48
TRAP2-74 and NOTRAP2-74
TRAP2-74 and NOTRAP2-74
UL
Note. The NMCOBOL compiler, which cannot call COBOL 74 programs, ignores these
directives and issues warnings.
Use the NOTRAP2-74 directive only during the process of conversion from COBOL 74 to
HP COBOL. It is provided to enable programs that do not include SIZE ERROR phrases to be
compiled and executed in HP COBOL without investing programmer time in analyzing the
potential for overflow problems. The availability of this directive might be discontinued after a
period of time.
Default: TRAP2-74
Placement: Anywhere
Scope: The last TRAP2-74 or NOTRAP2-74 before the END PROGRAM
statement for the outermost program applies to the entire separately
compiled program (the outermost program of a compilation and any
programs contained within it).
Dependencies: NOTRAP2-74 overrides TRAP2.
References: TRAP2 and NOTRAP2
Note. The COBOL85 compiler does not recognize this directive.
Default: None
Placement: Before the first IDENTIFICATION DIVISION header of the first program
in the compilation unit
Scope: Applies to the compilation unit
Dependencies:
If RUNNABLE is active, UL uses the linker to create a PIC library file
(DLL); otherwise, UL creates a PIC linkfile.
Do not use with CALL-SHARED, NON-SHARED, or SHARED.
References:
CALL-SHARED
SHARED
TRAP2-74
NOTRAP2-74
VST329.vsd
UL
VST735.vsd