SETLL merely positions the file to a record. If Factor 1 is not greater than any other record, the results of the SETLL will be successful - Even if a matching key value does not exist in the file. For instance if you specified:907 SETLL MYFILEin a file with key values of 906 and 908, the results of SETLL will be that the next READ of the file will be at 908. SETLL will not fail, but a READE using a value of 907 would fail. Dave

Reply With Quote