Example 4: Specify a keyed sequence access path without using DDS

This example shows how to arrange records using a shared-weight sort sequence.

To process the records by the JOB field values with a unique-weight sort sequence using the STAFF file in Table 1, specify:
OPNQRYF FILE(STAFF) KEYFLD(JOB) SRTSEQ(*LANGIDSHR) LANGID(ENU)

The results from this query are similar to the results in Example 3. The mgr and sales entries can be in any sequence because the uppercase and lowercase letters are treated as equals. That is, the shared-weight sort sequence treats mgr, Mgr, and MGR as equal values. Likewise, sales, Sales, and SALES are treated as equal values.