qkb

listQKBLocales

Description

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.

qkb.listQKBLocales / qkb="string";
Settings
ParameterDescription
qkbSpecifies the name of the Quality Knowledge Base (QKB) for which to list the locales. This is a required parameter.
Data Preparation View data prep sheet
Prerequisite: Loading a QKB

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.

Copied!
1 
2PROC CAS;
3ACTION qkb.loadQKB / qkb='QKB CI';
4 
5RUN;
6 
7QUIT;
8 

Examples

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.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2ACTION qkb.loadQKB / qkb='QKB CI'; RUN;
3ACTION qkb.listQKBLocales / qkb='QKB CI';
4RUN;
5QUIT;
Result :
The action returns a result table named 'Locales' which contains a list of all locales supported by the specified QKB. Each row represents a locale, identified by its standard five-letter code (e.g., 'ENUSA' for English, United States).

FAQ

What is the purpose of the listQKBLocales action in the QKB action set?
What parameter is required to use the listQKBLocales action?
How can I specify the QKB to list locales from when using the listQKBLocales action?
What is the purpose of the listQKBLocales action?
What does the 'qkb' parameter represent?