SQL Programming Manual for Pascal

NonStop SQL Version Issues
HP NonStop SQL Programming Manual for Pascal528614-001
D-10
Developing C10 Applications with C30 Software
Developing C10 Applications with C30 Software
Network installations might have several nodes running different versions of NonStop
SQL, which can happen after the installation’s development node installs C30. To
facilitate program development for these installations, the NonStop SQL programmatic
interface provides a release specification option. The RELEASE1 option of the SQL
directive enables sites to develop C10 (Release 1) programs on a C30 (Release 2)
system. When a program includes the RELEASE1 option, the C30 Pascal compiler
generates code that can be SQL compiled and executed on a C10 or C30 system.
Without this directive, a program developed and Pascal compiled on a C30 system
cannot be SQL compiled and executed on a C10 system.
The RELEASE1 programs cannot use new C30 features. The use of new C30 features
is not checked by the Pascal compiler, but will be detected when the RELEASE1
program is SQL compiled on a node running NonStop SQL C10 components.
To ensure that a program using the RELEASE1 option is error free, you should SQL
compile and test the program on a C10 system where it will be installed.
To install a program on a C10 system, duplicate the program object file on the C10
system and then SQL compile the program object file.
Binding C10 and C30 Object Files
Several object files that have been Pascal compiled by different versions of the
compiler (C10 and C30) can be bound together as a single unit and then SQL
compiled. The resulting object file is assigned the version (C10 or C30) of the SQL
compiler. This version information is used internally by SQL software components.
To migrate existing C10 programs that consist of multiple object files bound together to
a C30 system:
1. Pascal compile with the C30 compiler only those source program files that are
modified. Adding new C30 functionality to a single module of an existing program
does not require that all source modules be Pascal compiled again.
2. Bind all the object files.
TSQLCI2 T9198C10^06MAR89 T9198AAA
FASTSORT T9620C10^14FEB89 T9620AAB
Note: For a node running NonStop Kernel operating system C10 with NonStop SQL C10, these versioning
IPMs must be explicitly installed. For a node running NonStop Kernel operating system C20 with NonStop SQL
C10, these versioning IPMs are included with the NonStop Kernel operating system C20 installation, except the
BACKUP/RESTORE IPM, which does not apply to NonStop Kernel operating system C20.
Table D-4. SQL C10 Versioning IPM Summary (page 2 of 2)
Component Name IPM Numbers
Component
Identification