Previous Topic: CONNECTNext Topic: ERASE and DISCONNECT


MODIFY

The MODIFY function replaces the contents of the record that is current of run unit with the values in the area of variable storage to which its record type is bound. The user program must ensure correct currency by performing some other function (a STORE, GET, OBTAIN, or another MODIFY) on the record prior to issuing the MODIFY function.

The MODIFY function can change the value of any field in a record including CALC, sort, and index key fields. If the value of a sort or index key field is changed, the record is repositioned in the set or index to reflect the new value.

The following diagram illustrates the steps needed to locate and update June Moon's EMPLOYEE record to change her status from temporary (TP) to permanent (P).