COBOL Manual for TNS and TNS/R Programs

Migrating TNS Programs to Native Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
33-13
Source Program Changes
Source Program Changes
Source program changes fall into these categories:
General Migration Tasks
Removal Required
Possible Changes Required
Removal Optional
New Features (Optional)
General Migration Tasks
If your HP COBOL 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, seethe TNS/R Native
Application Migration Guide.
If your HP COBOL program calls COBOL-environment versions of Saved Message
Utility (SMU) routines, replace them with their CRE equivalents, which are listed in
Table 13-11.
Removal Required
Remove these directives, statements, and library references from your HP COBOL
source program before compiling it with the NMCOBOL or ECOBOL compiler.
ENV OLD Directive
If you specify the ENV OLD directive, the NMCOBOL or ECOBOL compiler reports
an error. Native HP COBOL programs always run in the CRE.
SQL Directive
If your program contains SQL/MP statements, include the SQL directive in the
NMCOBOL or ECOBOL compiler command line. Do not use the SQL option
RELEASE1.
CHECKPOINT and STARTBACKUP Statements
If you are migrating to TNS/R and your NMCOBOL compiler is earlier than RVU
D46.00 or G06.00, software product revision T8107AAT (run-time library
T8108AAR), it does not support process pairs, so you must remove any
CHECKPOINT and STARTBACKUP statements. (In all other cases, you can leave
CHECKPOINT and STARTBACKUP statements in your program.)