Ch 6. Host Language Access [ TurboIMAGE/XL Database Management System Reference Manual ] MPE/iX 5.0 Documentation
TurboIMAGE/XL Database Management System Reference Manual
Chapter 6 Host Language Access
You can access TurboIMAGE/XL from Compatibility Mode or Native Mode
application programs. Compilers are available on MPE/iX in one or both
modes in BASIC, BBASIC, C, COBOL, COBOL II, FORTRAN 66, FORTRAN 77,
Pascal, RPG, and SPL. This chapter focuses on specific programming
languages for use with Native Mode only. For Compatibility Mode
examples, refer to the TurboIMAGE/V Database Management System Reference
Manual.
The first section of this chapter presents a model program written in
pseudocode; the subsequent sections discuss using TurboIMAGE/XL with
specific programming languages.
NOTE If you are an experienced TurboIMAGE/XL programmer, you can skip
the model program and go directly to the section containing the
language in which you program.
The following languages are presented in alphabetical order in this
chapter:
* C
* COBOL II
* FORTRAN 77
* Pascal
* RPG
Each discussion includes:
* A presentation of any needed language-specific TurboIMAGE/XL
information.
* An example showing some of the various model program routines
written in the particular language. Note that the COBOL II
program example shows all of the routines included in the model
program.
The COBOL II program is a complete, executable program. The RPG program
is also executable, although it contains only a subset of the model
program routines. The other language examples show only portions of the
model program but do demonstrate many of the TurboIMAGE/XL procedures.
All of the examples are designed to illustrate the most simple and direct
way TurboIMAGE/XL procedures are called. They are not intended as
examples of the best way to code the tasks that are illustrated; this
will vary with the application requirements and an individual
programmer's coding methods.
A knowledge of the programming language is assumed. If you have
questions about the language itself, consult the appropriate language
manual. For information on the TurboIMAGE/XL data types to be used with
these languages, refer to chapter 3.
NOTE In this manual a word is a 32-bit storage unit and a halfword is a
16-bit storage unit. One byte is 8 bits.
MPE/iX 5.0 Documentation