Unexpected Results Using Keyed Files

When using READE, READPE, SETLL for equality, or Sequential-within-limits processing by a record address file, normally the key comparisons are done at the data management level. However, there are some situations that do not allow the key comparison to be done at the data management level. When data management cannot perform the key comparison, the comparison is done using the hexadecimal collation sequence. This may cause unexpected results. For example, if ABSVAL is used on a numeric key, both -1 and 1 would be seen as valid search arguments for a key in the file with a value of 1. Using the hexadecimal collating sequence, a search argument of -1 will not succeed for an actual key of 1.

Some of the features that cause the key comparison to differ are:

Some of the features that will cause a hexadecimal key comparison to differ from a key comparison performed by data management are:



[ Top of Page | Previous Page | Next Page | Contents | Index ]