PURPOSE: Used to CREATE a new record in the designated data set from the area address by :R. Generally it is proceeded by a READY statement which either clears the blanks if the data set is ASCII or zeros if BINARY. You can also READY the record area with a copy of a record from another data set. After executing the CREATE, the data in the record still available. If you just wanted to change a few fields and create another record, you do not have to do another READY.
CREATE {MASTER; TRANSACTION; designator} [HUSH] [IF; UNLESS clause]
[iterate clause]
CREATE |
causes the new record to be inserted into the named DS (MASTER, TRANSACTION, designator). The DS named must be specified as the destination in a prior READY statement. |
GET PRIOR FROM AUX5
READY AUX9 AREA WITH AUX5
CREATE AUX9
NOTES: A DS that is referenced in a CREATE statement must be related in the RELATE statement with the option UPDATE, CREATE, or CREATE APPENDING. A master or transaction DS must be related for UPDATE if you want to create new records in them.
SEE ALSO: READY Statement