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.
| Parameter | Description |
|---|---|
| qkb | Specifies the name of the QKB to be loaded into memory. This QKB must have been previously imported into the CAS server. |
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.
| 1 | /* Administrator task: Import the QKB from a path accessible to the CAS controller. */ |
| 2 | PROC CAS; |
| 3 | qkb.importQKBFromCaslib / |
| 4 | caslib='CAS_library_with_QKB_files' |
| 5 | path='QKB_CI_32_install_directory' |
| 6 | qkb='QKB_CI_32'; |
| 7 | RUN; |
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.
| 1 | PROC CAS; |
| 2 | qkb.loadQKB / |
| 3 | qkb='QKB_CI_32'; |
| 4 | RUN; |
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.
| 1 | PROC CAS; |
| 2 | /* Step 1: Load the QKB into the current session */ |
| 3 | qkb.loadQKB / |
| 4 | qkb='QKB_CI_32'; |
| 5 | |
| 6 | /* Step 2: List all QKBs currently loaded in the session to verify */ |
| 7 | qkb.listQKBs; |
| 8 | RUN; |