To add a record, specify the ADD operation on the FILE definition.
FUNC= ADDN (to obtain a new work area)
or
FUNC=ADDU (to use the data in the current work area)
Press Enter to get the work area to be used for the new record. FILE displays the maximum record length in the SIZE field and ADD in the MODE field.
FUNC=CHGE SUBFUNC=FILL DATA=data string
Press Enter.
FUNC= PUT RCID= record id SIZE= record length
For a KSDS file, the record ID overlays the key portion of the record.
Note: Specify the SIZE field only when adding a variable length record. Press Enter. FILE redisplays the new record and displays the message RECORD ADDED.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|