From bef7a440ac1643f6431ea059b36262402a0cf5af Mon Sep 17 00:00:00 2001 From: dc Date: Fri, 16 Oct 2026 09:38:51 +0000 Subject: [PATCH] docs(filter): the applied clause carries SAS temporal literals The clause shown above the grid is the resolved WHERE clause, so a date, datetime or time filter reads as a SAS literal rather than the internal day or second count. Note it on the filter page and on the MPE_FILTERSOURCE RAW_VALUE column, which is where the value is stored. --- docs/filter.md | 2 ++ docs/tables/mpe_filtersource.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/filter.md b/docs/filter.md index 848bfe0..1dd2b09 100644 --- a/docs/filter.md +++ b/docs/filter.md @@ -9,6 +9,8 @@ og_image: https://docs.datacontroller.io/img/filter_dynamic_on.png Data Controller for SAS® enables you to create complex table filters. The "dynamic" setting enables the dropdown values to be pre-filtered by previous filter clauses. Filtered views are shareable! They are also used when [embedded in VA.](/embed-va) +The clause shown above the grid is the resolved WHERE clause that was applied, so it uses SAS syntax - a date, datetime or time filter reads as a SAS literal, eg `SOME_DATE = '20APR2042'd`, rather than the internal day or second count. + ## Shared Filters When filters are submitted, the query is stored, and a unique URL is generated. This means you can share the link to a filtered view of a table! This can be used for VIEW, for EDIT and also for downloading data. diff --git a/docs/tables/mpe_filtersource.md b/docs/tables/mpe_filtersource.md index 5753bf9..3677d4f 100644 --- a/docs/tables/mpe_filtersource.md +++ b/docs/tables/mpe_filtersource.md @@ -17,5 +17,5 @@ The `MPE_FILTERSOURCE` table stores the individual query lines of each filter cr - `SUBGROUP_ID num`: Identifier of the subgroup to which this line belongs - `VARIABLE_NM char(32)`: The variable being filtered - `OPERATOR_NM char(12)`: The filter operator (e.g. `=`, `>`, `IN`) - - `RAW_VALUE char(4000)`: The filter value + - `RAW_VALUE char(4000)`: The filter value. A date, datetime or time is stored as a SAS literal (for example `'20APR2042'd`, `'01JAN1960:00:00:42'dt`, `'00:00:42't`), so the clause shown above the grid reads as a date rather than the internal day or second count. - `PROCESSED_DTTM num`: Datetime the filter line was created -- 2.53.0