Index example: Ordering with a shared-weight sort sequence table

 

Ordering with a shared-weight sort sequence table (SRTSEQ(*LANGIDSHR) LANGID(ENU)).

  SELECT * FROM STAFF    WHERE JOB = 'MGR'
   ORDER BY JOB

When using the OPNQRYF command, specify:

OPNQRYF FILE((STAFF))
   QRYSLT('JOB *EQ ''MGR''') 
   KEYFLD(JOB) SRTSEQ(*LANGIDSHR) LANGID(ENU)

The system can only use index SHRIX.

 

Parent topic:

Examples of indexes