Merge VSAM Files and Convert to One Datacom/DB Table
Learn how to merge multiple VSAM files that share prime key data to a single Datacom/DB table.
To convert multiple VSAM files that share prime key data to a single
Datacom/DB
table, complete the following procedure:
- Write a program to produce a sequential file. This program must:
- Read each source VSAM file.
- Merge all common portions of the files.
- Preserve the unique portions of each file.
- Initialize the data area by executing theINIT AREAfunction of DBUTLTY.
- Code a control statement for theLOAD AREAfunction of DBUTLTY.
- Convert the data to that area directly from the load file created by your program. Use theLOAD AREAfunction of DBUTLTY.