Hi
I want to create alternate Key on two different fields for VSAM files. I dont have an idea of how to do it. Can some one help me to find a solution.
The file structure is
01 EMPLOYEE-REC.
05 EMP-ID PIC 9(6).
05 EMP-FIRSTNAME PIC A(20).
05 EMP-LASTNAME PIC A(20).
05 DESIG PIC X(20).
05 FILLER PIC X(14).
EMP-ID is primary key in original file.
The following is an example for creating alternate index on one field(firstname) which i have done.
Please help to create an alternate index on both firstname and desig fields simultaneously....
DEFINE AIX(NAME(IGTRN05.ISAI.ALTKSDS) -
RELATE(IGTRN05.ISAI.KSDS22)-
TRACKS(10 20) -
CONTROLINTERVALSIZE(10) -
FREESPACE(10 20) -
VOLUMES(USER07) -
NONUNIQUEKEY -
UPGRADE -
KEYS(20 06) -
RECORDSIZE(80 80) -
SHAREOPTIONS(1 ) -
) -
DATA (NAME(IGTRN05.ISAI.ALTKSDS.DATA) -
) -
INDEX (NAME(IGTRN05.ISAI.ALTKSDS.INDEX) -
)
Thanks