An index can contain multiple fields.
If you have 5 different index files then you can use the save KLIST if the following is true:
1. Determine how many of the key fields you want to use.
2. Is every file setup with those fields as the initial fields in the access path? They can have more fields AFTER those fields.
3. Do you want to use the same number of fields in the CHAIN command?
==
If any of the above is not true, you cannot do what you are asking.
So you need to set up other KLISTS. Here are some examples:
C Key#1 Klist
C Kfld SPASYS
C Kfld SPAPRN
C Kfld SPAAGT
C Kfld Acct1
C Key#2 Klist
C Kfld SPASYS
C Kfld SPAPRN
C Kfld SPAAGT
C Key#3 Klist
C Kfld SPASYS
Discuss This Question: 3  Replies