Index example: Ordering with no sort sequence table
Ordering with no sort sequence table (SRTSEQ(*HEX)).
SELECT * FROM STAFF WHERE JOB = 'MGR' ORDER BY JOBWhen using the OPNQRYF command, specify:
OPNQRYF FILE((STAFF)) QRYSLT('JOB *EQ ''MGR''') KEYFLD(JOB) SRTSEQ(*HEX)The system can only use index HEXIX.
Parent topic:
Examples of indexes