iSeries Access sort sequence

You can specify the sort sequence in the iSeries™ Access functions. When performing queries on the server databases and SQL tables, you can specify the system-supplied or user-supplied sort sequence tables.

Remote SQL support

You can specify the way the selected data has to be sorted when performing the query. For that purpose, sort fields must be specified in the ORDER BY clause. The following clauses also use the specified sort sequence:

The actual sort sequence table is retrieved from the job attributes of the user. The SRTSEQ and LANGID parameters can be affected through changing the user profile or changing the job attributes.

Data transfer support

When transferring data from the iSeries server to the workstation, you can specify the sort sequence to be applied on selected data. The sort sequence table is also used in the following string comparison operations:

You can specify in the OPTION statement the following parameters related to sort sequence:

You can choose the appropriate sort sequence through options on iSeries Access displays.

Related concepts
Sort sequence (QSRTSEQ) system value
Language identifier (QLANGID) system value