HP 3000 Manuals

END TRANSACTION [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

END TRANSACTION 

The END TRANSACTION statement defines the end of the sequence of
TurboIMAGE procedure calls begun by the BEGIN TRANSACTION statement.  The
MSG parameter allows you to log additional information in the log file.

Syntax 

END TRANSACTION dbname$, MSG[=]str_expr, [, MODE[=]mode]

[, STATUS[=]status_array(*)]

Parameters 

dbname$          A string variable whose value is a TurboIMAGE database
                 name.  dbname must be the variable that was passed to a
                 successful DBOPEN.

str_expr         A string of ASCII characters of up to 512 characters in
                 length to be written as part of the END TRANSACTION log
                 record.

mode             If not specified, the value is set to one.  The modes
                 are the following:

                  *  mode1:  end logical transaction.

                  *  mode2:  end logical transaction and write contents
                     of the logging buffer in memory to disk.

status_array     A 10-element short integer array to which TurboIMAGE
                 returns an error code.  If an HP Business BASIC/XL
                 database statement specifies the STATUS option, an error
                 does not abort the program.  Following execution of the
                 database statement the program can check status_array 
                 and handle the error.  The values returned by TurboIMAGE
                 to this array are detailed in the description of the
                 status parameter of the equivalent TurboIMAGE library
                 procedure.

Examples 

The following examples show the use of the END TRANSACTION statement.

     110 END TRANSACTION Db$,MSG=M$,MODE=1
     120 END TRANSACTION Db$,MSG M$,MODE 2,STATUS S(*)
     130 END TRANSACTION Db$,MSG=M$,STATUS=S(*)



MPE/iX 5.0 Documentation