I have a flat file of record length 100 of which i need 24 fields to b written to the output so that the record is unique.So am reproing those fields into a KSDS giving the 24 fields as a key. looking at the fact that the KSDS rec length is 24 and key length is also 24, will it not be a flat file again?. Can we access the KSDS in the cobol program by using indexed access method?
I guess the concept of giving all the entries to KSDS as keys is wrong... Please correct me if i am wrong.
Defining a VSAM file with key length 24 and record length 24 does not change the fact that it is a VSAM file. From an application point of view it doesn't make much sense to have a file that is all key but it can be done. The file will be accessed as a VSAM file, not a flat file.