| Directives |
|
| Formats | INSERT
(chan[,fileopt])varlist
|
|||||||||||||||||||||||||||||||
| Description | The
INSERT directive is used to write a new
record to a file (channel/logical file number). The
syntax for this directive is identical to the WRITE
Directive;
however, INSERT only writes a record if does
not exist and will return an error if the
record already exists. INSERT may be used against Keyed, Memory, ODBC, and OCI files. When IND= is used with *MEMORY*, this directive inserts a new index. |
|||||||||||||||||||||||||||||||
| See Also | WRITE RECORD Write Record WRITE Add/Update Data in File UPDATE Update Existing Record in File |
|||||||||||||||||||||||||||||||