UPDATE |
Update Existing Record in File |
UPDATE (chan[,fileopt])varlist
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. |
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.
WRITE Add/Update Data in File
WRITE RECORD Write Record
INSERT Insert New Record in File