Using the API in a Program

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