Previous Topic: Add a VSAM RecordNext Topic: Copy a VSAM Record from One File to Another


Mass Insertion into a VSAM File

Follow the same procedure for adding a single record.

  1. Specify FUNC=ADDN, or FUNC=ADDU and SUBFUNC=MASS. Optionally specify the DATA= data string field.
  2. 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.
  3. Enter FUNC= REL to terminate the mass insertion operation.

Example

  1. Specify the following, and then press Enter:
    FILEID= ACCTS 
    FUNC= ADDN 
    SUBFUNC= MASS 
    
  2. Specify the following, and then press Enter:
    FUNC= CHGE SUB
    FUNC= FILL DATA= C' ' 
    
  3. Specify the following, and then press Enter:
    FUNC= PUT 
    RCID= C'NEWREC004' 
    
  4. Specify the following, and then press Enter:
    FUNC= PUT 
    RCID= C'NEWREC005'
    
  5. Specify the following, and then press Enter:
    FUNC= PUT
    RCID= C`NEWREC008' 
    
  6. Specify the following, and then press Enter:
    FUNC= REL