Class: TranSet
Description
This property identifies the transactions that were rejected when posting a transaction using the postTSet method. A rejection status field is created in the transaction set object after a transaction set has been submitted for posting. The string of data in this field records the results for each transaction record found in the transaction set during the posting process. The status property reports only rejected primary transactions.
A value of 0 indicates a successfully posted transaction, while a value of 1 indicates a rejected transaction. The statuses of individual transactions are delimited by the vertical bar character |. For example, the following statuses result when posting two transactions:
Scenario 1:
The first transaction fails, but the second transaction posts. The status field contains "1|0".
Scenario 2:
The first transaction posts, but the second transaction fails. The status field contains "0|1".
Scenario 3:
Both transactions fail. The status field contains "1|1".
Syntax
status=$P(TranSet.status,"|",sequence)
When Became Available
Profile v6.0
Example
//build trans record, copy to transet, store ptr in x
set x(tsseq)=ts.copyTran(ttx(tsseq))
// post transet
do ts.postTSet(TPD,BRCD,.par)
set tsseq=""
for set tsseq=$O(x(tsseq)) quit:tsseq="" do { quit:rflg!('PATFEE)
set STAT=$P(ts.status,"|",tsseq)
set rflg.......//do other things
}