HP 3000 Manuals

Controlling Transact/iX Program Execution [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

Controlling Transact/iX Program Execution 

Both Transact/V and Transact/iX use the formal file designator, TRANIN,
at run time to respond to input prompts and database passwords.  The
default setting for TRANIN is $STDINX. The program reads input from
TRANIN until it encounters an end-of-file condition.  If it reaches the
end-of-file before all prompts are answered, it returns to $STDINX for
additional input.

TRANSORT is the name of the sort file opened and used by the processor.
The default size of this file is 10,000 records divided into 30 extents.
The size of this file can be altered by using the SORT= or WORKFILE=
options on the SYSTEM statement.  If a larger or smaller sort file is
desired after the program has been compiled, use a file equation to
change its size.  This will override the settings in the SYSTEM
statement.  For example, to reduce the sort file size to 5,000 records
use the following MPE FILE command:

     :FILE TRANSORT; DISC=5000 

Transact/iX Environment Variables 

Two environment variables, TRANDBMODE and TRANDEBUG, are available with
Transact/iX:

TRANDBMODE.   

This environment variable provides a method for specifying the database
open mode at run time.  Transact/V allows this same feature when
responding to the system prompt.

The mode consists of a single digit that indicates one of the open modes
to be specified for DBOPEN. If you do not specify a mode in the SYSTEM
statement of your program or use this environment variable, Transact
opens the databases in mode 1.  Any mode specified in the SYSTEM
statement of the program takes precedence over a mode specified by this
environment variable.

To use this feature, do the following:

   *   At the MPE/iX system prompt, set the environment variable to
       contain the desired open mode for the database at the time DBOPEN
       is called.

       :SETVAR TRANDBMODE 5
              (where 5 is the open mode)

   *   Run the native mode Transact program as usual.

TRANDEBUG.   

For Transact programs that were compiled with the TRANDEBUG option, this
environment variable allows the user to disable and enable the TRANDEBUG
debugger without recompiling the program.  (See "Disabling the Debugger"
in Chapter 11.)



MPE/iX 5.0 Documentation