From 926299f2ee69531579efa56479620187d11bea8c Mon Sep 17 00:00:00 2001 From: dc Date: Tue, 20 Oct 2026 11:52:03 +0000 Subject: [PATCH] docs(config): the label is = --- docs/derived-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/derived-variables.md b/docs/derived-variables.md index 8e19999..771cafe 100644 --- a/docs/derived-variables.md +++ b/docs/derived-variables.md @@ -54,11 +54,11 @@ ACTIVE 1 For each row, Data Controller generates the following statements when the table is read: ```sas -attrib REGION length=$8 label='DERIVED: ifc(STATE in (''CA'',''OR'',''WA''),''West'',''East'')' format=$8.; +attrib REGION length=$8 label='REGION=ifc(STATE in (''CA'',''OR'',''WA''),''West'',''East'')' format=$8.; REGION = ifc(STATE in ('CA','OR','WA'),'West','East'); ``` -The label defaults to the expression itself, prefixed with `DERIVED: `, so that computed columns are obvious when labels are switched on. The expression is truncated to the maximum label length. +The label is the variable name, an equals sign and the expression - `REGION=ifc(...)` - so the column shows both what it is and where it comes from when labels are switched on. The expression is truncated to the maximum label length. The type and length are declared, not inferred, so a value is truncated exactly as you specify. If `VAR_FMT` is left blank, character variables default to `$.` and numeric variables to `.`; a date, time or datetime format makes the column render (and filter) as a date, time or datetime, the same way a stored column does.