Find out if a DBCS sort table exists

You can use the Check Object (CHKOBJ) command to find out if a DBCS sort table exists in your server.

For example, to find out if the table QCGMSTR exists, enter:
CHKOBJ OBJ(QSYS/QCGMSTR) OBJTYPE(*IGCSRT)

If the table does not exist, the server responds with a message. If the table does exist, the server returns without a message.

Check for the existence of a DBCS active sort table when you want to sort double-byte characters for the first time. The DBCS active table for the DBCS language must exist to sort the characters.

Related information
Check Object (CHKOBJ) command