Migrating TurboIMAGE/V Databases [ HP Business BASIC/XL Migration Guide ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Migration Guide
Chapter 12 Migrating TurboIMAGE/V Databases
Introduction
BASIC/V users access TurboIMAGE/V databases by calling the BIMAGE
interface procedures, the XDB procedure calls. The procedure calls are
part of the TurboIMAGE/V software. HP Business BASIC/XL users access
TurboIMAGE/XL databases by using DB statements that are actually HP
Business BASIC/XL statements.
The database access mechanism between BASIC/V and HP Business BASIC/XL
is completely different. The migration aid makes most changes
automatically. However, there are some features that cannot be directly
translated and that require manual changes to the source program.
The PACKFMT line is generated by the migration aid to control the packing
and unpacking of database buffers. If an item list in a BASIC/V program
contains a quoted string literal, an expression, or a function call, the
result will be an invalid PACKFMT statement. The best way to work around
this is to modify the BASIC/V program and rerun the migration aid.
Assign the quoted string to a string variable before the database
operation and replace the occurrence of the literal in the PACKFMT
statement with the variable. Expressions and numeric literals also need
to be removed from item lists. If the migration aid finds an expression
or literal in a PACKFMT statement, the following error message will be
displayed:
* * BBCT3000 WILL NOT DETECT THESE EXPRESSIONS AND NUMERIC LITERALS. * *
If an expression or numeric literal appears in a PACKFMT statement
generated by BBCT3000, that statement causes a syntax error when brought
into the HP Business BASIC/XL interpreter. The workaround is the same as
that for quoted strings.
If the original call to a TurboIMAGE interface routine in the BASIC/V
program contains an invalid number of parameters, then the migration aid
can't process it correctly. Instead of trying to change the migrated
program, correct the original BASIC/V program and rerun the migration
aid.
MPE/iX 5.0 Documentation