Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > ROLLBACK()

 

 

Purpose

ROLLBACK() immediately issues a rollback request.
 

Syntax

#variable = ROLLBACK()
 

Operation

#variable is a numeric scratch variable.  It is set to zero if the rollback is successful.
 

Remarks

If the rollback fails, PROIV terminates.
 

Example

IF application-error THEN
                #TEMP = ROLLBACK()
                FNEXIT
ENDIF

If an error occurs, the current transaction is aborted and the function exited.
 

 

You should be aware of the implications of a forced rollback (such as loss of fetch currency and release of locks).  It is normally sufficient to rely on the implicit rollbacks issued by PROIV.

 

Comment on this topic

Topic ID: 520106

 
 
 

Table of Contents

Index

Glossary

-Search-

Back