Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exit_task(1) — ACMSxp 3.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exception(1)

statement(1)

task_definition(1)

acmsxp_introduction(1)

exit task(1)  —  Commands

Digital

NAME

EXIT TASK − statement that ends the current task
 

SYNOPSIS

 
 [<label-name>:] EXIT TASK [ WITH { COMMIT | ROLLBACK } TRANSACTION ] ;
 

DESCRIPTION

 
If the EXIT TASK statement is used in a noncomposable task, it must be inside a transaction block. If you specify WITH ROLLBACK TRANSACTION, the ACMSxp system rolls back the current transaction. Any transactional resources modified by tasks participating in the transaction tree are rolled back.
 
WITH COMMIT TRANSACTION explicitly commits the current transaction. Any transactional resources modified by tasks participating in the transaction are committed as part of the same transaction.
 
Use an explicit COMMIT or ROLLBACK only at the demarcation point of a transaction. (COMMIT is the default if the statement is exiting a transaction block.)
 
The EXIT TASK statement does the following:

     1.Performs ROLLBACK TRANSACTION or COMMIT TRANSACTION, if specified. If ROLLBACK TRANSACTION or COMMIT TRANSACTION can be specified but are not, EXIT TASK performs the default (commit). 

     2.Completes with explicit EXIT TASK flow control. 

If an exception occurs, EXIT TASK completes with that exception. 
 

EXCEPTIONS

 
The EXIT TASK statement can generate the TXN-FAILURE-ERROR exception class.
 
The TXN-FAILURE-ERROR exception class indicates one of the following error conditions:

oOne of the resource managers participating in the transaction was unable to commit the transaction. 

oOne of the resource managers participating in the transaction failed to acknowledge a message when attempting to commit the transaction. 
 

RELATED INFORMATION

Syntax: exception(1), statement(1), task_definition(1)

acmsxp_introduction(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026