OpenTP1 Version 7 Programming Guide
If a TAM access error occurs in a transaction branch, call the abort() from the UAP in order to terminate the global transaction process abnormally.
Even if access is made to records in the same global transaction, an error might be returned upon access to a record. This is caused by the function called for the previous access. Also, even when access is made to the same record, the access results are different between when the record belongs to the same global transaction and when the record belongs to a different global transaction. Tables 4-7 and 4-8 show the processing results when a function was called more than once for the same record.
Table 4-7 Processing results when function was called more than once for the same record (in one global transaction)
Previously called function | Function to be called | Results or error return value |
---|---|---|
No function for accessing a TAM table has been called in the transaction | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | DCTAMER_SEQENCE (01732) | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_SEQENCE (01732) | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | Y | |
dc_tam_delete (deletion) | Y | |
dc_tam_read (input for reference) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | DCTAMER_SEQENCE (01732) | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_SEQENCE (01732) | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_read (input for reference, lock specified) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | Y#1 | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_SEQENCE (01732) | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_read (input for update) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | Y | |
dc_tam_rewrite (update on the assumption of input) | Y | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_read_ cancel (input cancellation) |
dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | DCTAMER_SEQENCE (01732)#2 | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_SEQENCE (01732) | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_rewrite (update on the assumption of input) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | DCTAMER_EXREWRT (01734) | |
dc_tam_rewrite (update on the assumption of input) | Y | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_write (update or addition) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | DCTAMER_SEQENCE (01732) | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_SEQENCE (01732) | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y | |
dc_tam_delete (deletion) | dc_tam_read (input for reference) | DCTAMER_NOREC (01731) |
dc_tam_read (input for reference, lock specified) | DCTAMER_NOREC (01731) | |
dc_tam_read (input for update) | DCTAMER_NOREC (01731) | |
dc_tam_read_cancel (input cancellation) | DCTAMER_NOREC (01731) | |
dc_tam_rewrite (update on the assumption of input) | DCTAMER_NOREC (01731)#3 | |
dc_tam_write (update) | DCTAMER_NOREC (01731) | |
dc_tam_write (addition) | Y | |
dc_tam_delete (deletion) | DCTAMER_NOREC (01731) |
Table 4-8 Processing results when function was called more than once for the same record (in a different global transaction)
Previously called function | Function to be called | Results or error return value |
---|---|---|
No function for accessing a TAM table has been called in the transaction. | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y | |
dc_tam_read (input for update) | Y | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | Y | |
dc_tam_write (addition) | Y | |
dc_tam_delete (deletion) | Y | |
dc_tam_read (input for reference) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y#2 | |
dc_tam_read (input for update) | Y#2 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | Y#2 | |
dc_tam_write (addition) | DCTAMER_EXKEY (01735) | |
dc_tam_delete (deletion) | Y#2 | |
dc_tam_read (input for reference, lock specified) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y#2 | |
dc_tam_read (input for update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read (input for reference) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read (input for update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | Y#4, #5 | |
dc_tam_read (input for update) | Y#4, #5 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | Y#4, #5 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 | |
dc_tam_rewrite (update on the assumption of input) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read (input for update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (update, or addition) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | DCTAMER_LOCK(01736)#3 | |
dc_tam_read (input for update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | dc_tam_read (input for reference) | Y |
dc_tam_read (input for reference, lock specified) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read (input for update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_read_cancel (input cancellation) | --#1 | |
dc_tam_rewrite (update on the assumption of input) | --#1 | |
dc_tam_write (update) | DCTAMER_LOCK (01736)#3 | |
dc_tam_write (addition) | DCTAMER_LOCK (01736)#3 | |
dc_tam_delete (deletion) | DCTAMER_LOCK (01736)#3 |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.