Using the API in a Program
- The U@AUDITBEGIN opens the transaction state.
- The key fields are entered into the D@ fields.
- The DN@DBIFCUC1(E@DBLOCKEQ) call uses the D@ fields and the index to return the appropriate record and ready it for updating.
- The CALLP S1@MVDT calls another routine that updates the record fields with the new values.
- The DCUC@IO(E@DBSTORE) routine updates the changed record in the file.
- The U@AUDITEND call closes the transaction state and commits the transaction.