

Accessing Auxiliary Storage: FILE › VSAM Files › FILE Functions for VSAM Records › Mass Insertion into a VSAM File
Mass Insertion into a VSAM File
Follow the same procedure for adding a single record.
- Specify FUNC=ADDN, or FUNC=ADDU and SUBFUNC=MASS. Optionally specify the DATA= data string field.
- Make your changes and write the new record. Repeat the procedure of making changes and writing the new record until you have added all the records.
- Enter FUNC= REL to terminate the mass insertion operation.
Example
- Specify the following, and then press Enter:
FILEID= ACCTS
FUNC= ADDN
SUBFUNC= MASS
- Specify the following, and then press Enter:
FUNC= CHGE SUB
FUNC= FILL DATA= C' '
- Specify the following, and then press Enter:
FUNC= PUT
RCID= C'NEWREC004'
- Specify the following, and then press Enter:
FUNC= PUT
RCID= C'NEWREC005'
- Specify the following, and then press Enter:
FUNC= PUT
RCID= C`NEWREC008'
- Specify the following, and then press Enter:
FUNC= REL
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|