UPDATE Update Existing Record in File
Format
UPDATE (chan[,fileopt])varlist
Where:
chan | Channel or logical file number of the file to which to write. | ||||||||||||||||||||||||
fileopt | Supported file options (see File Options):
| ||||||||||||||||||||||||
varlist | Comma-separated list of variables, literals, or IOL= options. |
Description
The UPDATE directive is used to update an existing record to a file (logical file number/channel). The syntax for this directive is identical to the WRITE directive; however, UPDATE only updates a record if it already exists and will return an error if the record does not exist.
UPDATE may be used against keyed, memory, ODBC and OCI files. When IND= is used with *MEMORY*, this directive overwrites an existing index.
See Also
WRITE Add/Update Data in File
WRITE RECORD Write Record
INSERT Insert New Record in File