Gust,
High-values can be used for a number of end-of situations, not just sorts. For instance, you may have a file that has a header record with a key of low-values and a trailer with a key of high values. The trailer may contain a records count for testing purposes.
In these circumstances you could:
PERFORM XA-READ
UNTIL KEY-FIELDS = HIGH-VALUES
PERFORM MAIN-PROCESSING
END-PERFORM
PERFORM END-OF-FILE-PROCESS
Or something similar. Let me know if this is of any help.
Marc