TNS/R Native Application Migration Guide
COBOL85 Migration Tasks
TNS/R Native Application Migration Guide—523745-001
4-2
Migrating COBOL85 Programs
3. If necessary, change your source program (see Changing the Source Program on 
page 4-4).
To learn whether you must change your source program, compile it with the 
NMCOBOL compiler, which will issue warnings when it encounters source 
constructs that it does not accept. Running the NMCOBOL compiler with the new 
DIAGNOSE-85 directive is especially recommended. This directive causes the 
NMCOBOL compiler to issue warnings when it encounters source constructs that 
could cause the program to produce different results than it would if it were 
compiled with the COBOL85 compiler. For a complete description of the 
DIAGNOSE-85 directive, see the COBOL85 for NonStop Systems Manual.
4. If your program calls TNS programs, migrate them to native mode. Native 
programs cannot call TNS programs. For the following list of languages, follow 
these instructions. The last one, Data Alignment on page 4-3, applies to several 
languages.
•
C/C++
Recompile C and C++ programs with the native C and C++ compilers, 
respectively. Verify to specify symbols when recompiling a C or C++ program 
that your COBOL85 program references in a CALL or ENTER statement. For 
information on tools that can help you migrate C and C++ programs to native 
mode, see Section 3, C and C++ Migration Tasks.
•
COBOL 74
Convert COBOL 74 programs to COBOL85 (see the COBOL85 for NonStop 
Systems Manual) and then migrate them to native COBOL85.
•
TAL
Convert TAL programs to pTAL (see the pTAL Conversion Guide). Some CRE 
library routines might no longer exist, so you might have to change calls to 
them. Also, if you want to reference an object in a CALL or ENTER statement, 
you must compile your pTAL program with symbols.
If any of your TAL programs use the FORTRAN convention for determining the 
length of a string parameter (that is, if they use the ENTER routine and do not 
specify the language TAL), convert them to use another method (for example, 
use the string:length convention or pass the length as a separate 
parameter).
For information on tools that can help you convert TAL programs to pTAL 
programs, see Section 5, TAL to pTAL Conversion Tasks.
•
FORTRAN and Pascal
There are no native FORTRAN or Pascal compilers. Rewrite FORTRAN and 
Pascal programs in native C, native C++, native COBOL85, or pTAL. You need 
not use the same language for all of them.










