bdfp1m0i | Programming Concepts and Reference |
Identifying Return Indicators and Errors
After you call a macro or function, the TPFDF product indicates the success or failure of the call by setting indicator bits in the SW00RTN field in the SW00SR slot for that subfile. The SW00RT1 and SW00RT2 fields provide additional information about error conditions.
When a macro or function ends successfully, the TPFDF product sets SW00RTN to zero and the application program continues normally.
Table 3 shows the SW00RTN and SW00RT2 settings that indicate the
application program must take some remedial action.
SW00SR Error Bits | Condition |
---|---|
SW00RTN #BIT1 | One of the following:
|
SW00RTN #BIT5 | End of file occurred during fullfile processing. |
SW00RT2 #BIT0 | Error in list of logical record numbers. This bit is only meaningful if bit 1 in SW00RTN is ON. |
SW00RT2 #BIT5 | The subfile is empty because of the following:
|
Table 4 shows the SW00RTN and SW00RT2 settings that indicate more
serious errors. The TPFDF product may issue a system error when one of
these errors occur.
SW00SR Error Bits | Condition |
---|---|
SW00RTN #BIT0 | I/O or B+Tree index error. |
SW00RTN #BIT2 | File address compute program (FACE) error. |
SW00RTN #BIT3 | One of the following:
|
SW00RTN #BIT4 | Data in block is corrupt. |
SW00RTN #BIT6 | Sequence error using a DBRST macro or dfrst function. |
SW00RTN #BIT7 | Sort or merge error. |
SW00RT2 #BIT1 | Error with the DBDSP macro or dfdsp function. |
SW00RT2 #BIT4 | B+Tree index error. |
When you use fullfile processing, SW00RT1 contains the number of errors detected since the file was opened.