TNS/E Native Application Conversion Guide
Converting COBOL Programs
TNS/E Native Application Conversion Guide—529659-003
4-5
Removal Required
Removal Required
Remove the following directives, statements, and library references from your TNS
COBOL source program before compiling it with the native COBOL compiler:
•
ENV OLD directive
If you specify the ENV OLD directive, the native COBOL compiler reports an error.
Native COBOL programs always run in the CRE.
•
SQL directive
If your program contains SQL statements, include the SQL directive in the native
ECOBOL compiler command line. Do not use the SQL option RELEASE1.
•
USE DEBUGGING statement
The 1985 COBOL standard classifies the USE DEBUGGING statement as
obsolete, so you are advised not to use it even in TNS COBOL programs. The
native COBOL compiler does not recognize the USE DEBUGGING statement, and
the TNS COBOL compiler no longer recognizes the names of the debug items,
which are:
°
DEBUG-CONTENTS
°
DEBUG-ITEM
°
DEBUG-LINE
°
DEBUG-NAME
°
DEBUG-SUB-1
°
DEBUG-SUB-2
°
DEBUG-SUB-3
Remove references to these TNS libraries, which native COBOL cannot use and does
not need.
•
CBL85UTL
•
COBOLLIB
•
CLULIB
Make these substitutions:
References to the preceding libraries could appear in these contexts:
•
CONSULT directive
•
LIBRARY directive
•
SEARCH directive
•
FILE-MNEMONIC clause of the SPECIAL-NAMES paragraph
•
OF or IN clause of the CALL or ENTER statement
Replace With
COBOLEX0 ECOBEX0
COBOLEX1 ECOBEX1
COBOLEXT ECOBEXT










