TNS/R Native Application Migration Guide
COBOL85 Migration Tasks
TNS/R Native Application Migration Guide—523745-001
4-4
Changing the Source Program
Changing the Source Program
Source program changes fall into these categories:
•
General Migration Tasks
•
Removal Required
•
Possible Changes Required on page 4-6
•
Removal Optional on page 4-8
•
New Features on page 4-9
General Migration Tasks
If your COBOL85 program calls obsolete or changed Guardian procedures, replace
them. Change any calls to procedures affected by either the Kernel Managed Swap
Facility (KMSF) or the native process architecture (for example, process creation calls).
For more information on the obsolete or changed procedures, see Section 9, Guardian
API Migration Tasks.
Removal Required
Remove the following directives, statements, and library references from your
COBOL85 source program before compiling it with the NMCOBOL compiler.
•
ENV OLD directive
If you specify the ENV OLD directive, the NMCOBOL compiler reports an error.
Native COBOL85 programs always run in the CRE.
•
SQL directive
If your program contains SQL statements, include the SQL directive in the
NMCOBOL compiler invocation command line. Do not use the SQL option
RELEASE1.
•
CHECKPOINT and STARTBACKUP statements
Native COBOL85 programs cannot be fault-tolerant process pairs in this RVU. If
the NMCOBOL compiler finds a CHECKPOINT or STARTBACKUP statement, it
sets the special register PROGRAM-STATUS to a value that indicates that fault
tolerance is not enabled. The compiler does not issue a diagnostic message.