thelearner
Programmer
Hi,
I have a file name PRMAST with 3 keys,
PRCUCD 6A
PRPRCD 25A
PRSEQ 1A
Instead of doing this
CHAIN (CUSTART) PRMAST;
I want to try BIF %KDS with KLIST define in data structure like this.
PRKEY DS
CUST 6
PART 25
CHIAN %KDS(PRKEY:2) PRMAST;
I got the compile error, saying that number of KFLDs in KLIST is greater than number of key fields in file.
Am I missing anything? I want to try everything in free form so please don't suggest a fix format.
Thanks
I have a file name PRMAST with 3 keys,
PRCUCD 6A
PRPRCD 25A
PRSEQ 1A
Instead of doing this
CHAIN (CUSTART) PRMAST;
I want to try BIF %KDS with KLIST define in data structure like this.
PRKEY DS
CUST 6
PART 25
CHIAN %KDS(PRKEY:2) PRMAST;
I got the compile error, saying that number of KFLDs in KLIST is greater than number of key fields in file.
Am I missing anything? I want to try everything in free form so please don't suggest a fix format.
Thanks