qkb

loadQKB

Description

Loads a Quality Knowledge Base (QKB) into memory. This action makes the QKB available for other data quality operations within the current CAS session. Loading a QKB is a prerequisite for any data quality function that relies on its definitions, such as parsing, standardization, and fuzzy matching.

qkb.loadQKB / qkb="QKB_name";
Settings
ParameterDescription
qkbSpecifies the name of the QKB to be loaded into memory. This QKB must have been previously imported into the CAS server.
Data Preparation View data prep sheet
Prerequisites: Importing a QKB

Before you can load a QKB, it must be available to the CAS server. This is typically done by an administrator using the `qkb.importQKBFromCaslib` or `qkb.importQKBFromURL` actions. This setup is a one-time administrative task for each QKB.

Copied!
1/* Administrator task: Import the QKB from a path accessible to the CAS controller. */
2PROC CAS;
3qkb.importQKBFromCaslib /
4 caslib='CAS_library_with_QKB_files'
5 path='QKB_CI_32_install_directory'
6 qkb='QKB_CI_32';
7RUN;

Examples

This example demonstrates how to load a QKB named 'QKB_CI_32' into memory for the current CAS session. This makes its definitions and locales available for data quality operations.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2qkb.loadQKB /
3 qkb='QKB_CI_32';
4RUN;
Result :
The action returns a success status note in the log, confirming that the QKB has been loaded. No table output is generated. You can verify the loaded QKBs using the `qkb.listQKBs` action.

This example first loads the 'QKB_CI_32' QKB and then immediately calls the `listQKBs` action to confirm that the QKB is now active in the session's memory and ready for use.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2/* Step 1: Load the QKB into the current session */
3qkb.loadQKB /
4 qkb='QKB_CI_32';
5 
6/* Step 2: List all QKBs currently loaded in the session to verify */
7qkb.listQKBs;
8RUN;
Result :
The log will first show the success note for the `loadQKB` action. Then, the results will display a table named 'Loaded QKBs' containing a row for each loaded QKB, which should include 'QKB_CI_32'.