|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Checks & Stores an input filter table and returns the Filter Key. More...
Go to the source code of this file.
Used to generate a FILTER_RK from an input query dataset. This process requires several permanent tables (names are configurable). The benefit of storing query values at backend is to enable stored 'views' of filtered tables at frontend (ie, when building SAS-Powered Apps). This macro is also used in Data Controller for SAS.
A more recent feature of this macro is the ability to support filter queries on Format Catalogs. This is achieved by adding a -FC suffix to the libds parameter - where the "ds" in this case is the catalog name.
| [in] | libds= | The target dataset to be filtered (lib should be assigned). If filtering a format catalog, add the following suffix: -FC. | ||||||||||||||||||||||||||||||||||||
| [in] | queryds= | (WORK.FILTERQUERY) The temporary input query dataset to be validated. Has the following format:
| ||||||||||||||||||||||||||||||||||||
| [in] | filter_summary= | (PERM.FILTER_SUMMARY) Permanent table containing summary filter values. The definition is available by running mp_coretable.sas as follows: mp_coretable(FILTER_SUMMARY). Example values:
| ||||||||||||||||||||||||||||||||||||
| [in] | filter_detail= | (PERM.FILTER_DETAIL) Permanent table containing detailed (raw) filter values. The definition is available by running mp_coretable.sas as follows: mp_coretable(FILTER_DETAIL). Example values:
| ||||||||||||||||||||||||||||||||||||
| [in] | lock_table= | (PERM.LOCK_TABLE) Permanent locking table. Used to manage concurrent access. The definition is available by running mp_coretable.sas as follows: mp_coretable(LOCKTABLE). | ||||||||||||||||||||||||||||||||||||
| [in] | maxkeytable= | (0) Optional permanent reference table used for retained key tracking. Described in mp_retainedkey.sas. | ||||||||||||||||||||||||||||||||||||
| [in] | mdebug= | (1) set to 1 to enable DEBUG messages | ||||||||||||||||||||||||||||||||||||
| [out] | outresult= | (work.result) The result table with the FILTER_RK | ||||||||||||||||||||||||||||||||||||
| [out] | outquery= | (work.query) The original query, taken as extract after table load |
Definition in file mp_filterstore.sas.