The `listQKBLocales` action lists all the locales that are available for a specified Quality Knowledge Base (QKB) that is loaded on the CAS server. A locale is a set of conventions for a specific language and country, such as 'ENUSA' for U.S. English. This action is essential for discovering which languages and regions are supported for data quality operations before applying definitions like parsing or standardization.
| Parameter | Description |
|---|---|
| qkb | Specifies the name of the Quality Knowledge Base (QKB) for which to list the locales. This is a required parameter. |
Before you can list the locales of a Quality Knowledge Base (QKB), you must first load one into the CAS session. The following code loads the default QKB, typically named 'QKB CI'. Ensure that the QKB has been imported and is available on the server.
| 1 | |
| 2 | PROC CAS; |
| 3 | ACTION qkb.loadQKB / qkb='QKB CI'; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
This example demonstrates how to retrieve the list of all available locales for the 'QKB CI' (Contact Information) Quality Knowledge Base, after ensuring it is loaded.
| 1 | PROC CAS; |
| 2 | ACTION qkb.loadQKB / qkb='QKB CI'; RUN; |
| 3 | ACTION qkb.listQKBLocales / qkb='QKB CI'; |
| 4 | RUN; |
| 5 | QUIT; |