I have a order detail file that i'm retrieving records from. I have a klist named speckey and it's made up of three fields Customer Number, Block Number and Order Number. The file itself has four key fields Customer Number, Block Number, Order Number and Product Number.
I use the following code to position the file:
c speckey setll specd
I then use this code to read the records
c speckey reade specd
I loop through the file and retrieve the matched records and write it to a display file. And it works. The only problem I have is that the records come back sorted in ascending key order. I don't want any sorting. I just want it to read the records as they are found in the file.
Does anyone know how to accomplish this?
Thanks in advance for any and all help.
I use the following code to position the file:
c speckey setll specd
I then use this code to read the records
c speckey reade specd
I loop through the file and retrieve the matched records and write it to a display file. And it works. The only problem I have is that the records come back sorted in ascending key order. I don't want any sorting. I just want it to read the records as they are found in the file.
Does anyone know how to accomplish this?
Thanks in advance for any and all help.