fix: removing display_value in SAS code
Build / Build-and-ng-test (pull_request) Successful in 3m54s
Build / Build-and-test-development (pull_request) Successful in 9m39s
Lighthouse Checks / lighthouse (pull_request) Successful in 17m49s

This commit is contained in:
2026-06-25 17:24:35 +01:00
parent 6a30de37ca
commit 9b18a45d35
12 changed files with 159 additions and 182 deletions
+3 -4
View File
@@ -270,15 +270,14 @@ data _null_;
file vldtr ;
put 'proc sql;';
put 'create table work.vals as';
put ' select distinct ORIGIN as display_value,';
put ' ORIGIN as raw_value';
put ' select distinct ORIGIN as raw_value';
put " from &demolib..COUNTRIES";
put ' order by 1;';
put 'data work.DYNAMIC_VALUES; set work.vals;display_index=_n_;run;';
put ' ';
put 'proc sql;';
put 'create table work.dev as ';
put ' select a.display_index,b.country as display_value';
put ' select a.display_index, a.raw_value';
put ' from work.DYNAMIC_VALUES as a';
put " left join &demolib..countries as b";
put " on a.raw_value=b.origin";
@@ -286,7 +285,7 @@ data _null_;
put 'data work.DYNAMIC_EXTENDED_VALUES; set work.dev;by display_index;';
put ' EXTRA_COL_NAME="COUNTRY";';
put ' DISPLAY_TYPE="C";';
put ' RAW_VALUE_CHAR=DISPLAY_VALUE;';
put ' RAW_VALUE_CHAR=raw_value;';
put ' RAW_VALUE_NUM=.;';
put ' if first.display_index then forced_value=1;';
put 'run;';
@@ -22,8 +22,7 @@
<h5>DYNAMIC_VALUES</h5>
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically. A DISPLAY_VALUE column may be supplied
by the hook but is ignored - only DISPLAY_INDEX and RAW_VALUE are returned.
provided, it is added automatically.
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
@@ -38,9 +37,6 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
A DISPLAY_VALUE column may be supplied by the hook but is ignored - it is not
returned to the client.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|N|0.5||
@@ -171,24 +167,21 @@ run;
%mp_include(sascode)
%mp_abort(mode=INCLUDE)
/* ensure that the DISPLAY_INDEX variable exists. DISPLAY_VALUE is accepted
from the hook for backwards compatibility but is no longer sent to the client */
/* ensure that the DISPLAY_INDEX variable exists. */
data work.dynamic_values;
length DISPLAY_INDEX 8 DISPLAY_VALUE $32767;
length DISPLAY_INDEX 8;
if _n_=1 then call missing(of _all_);
set work.dynamic_values;
display_index=coalesce(display_index,_n_);
keep DISPLAY_INDEX RAW_VALUE;
run;
/* ensure that work.dynamic_extended_values exists with correct types.
DISPLAY_VALUE is dropped - it is not consumed by the client */
/* ensure that work.dynamic_extended_values exists with correct types.*/
data work.dynamic_extended_values;
length DISPLAY_INDEX 8 EXTRA_COL_NAME $32 DISPLAY_VALUE $5000 DISPLAY_TYPE $1
length DISPLAY_INDEX 8 EXTRA_COL_NAME $32 DISPLAY_TYPE $1
RAW_VALUE_NUM 8 RAW_VALUE_CHAR $5000 FORCED_VALUE 8;
if _n_=1 then call missing(of _all_);
set work.dynamic_extended_values;
drop DISPLAY_VALUE;
run;
%webout(OPEN)
@@ -22,10 +22,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -35,17 +35,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
<h4> SAS Macros </h4>
@li dc_assignlib.sas
@@ -96,12 +96,11 @@ run;
%dc_assignlib(READ,%scan(&tgtlibds,1,.))
proc contents noprint data=&tgtlibds
out=work.DYNAMIC_VALUES (keep=name rename=(name=display_value) );
out=work.DYNAMIC_VALUES (keep=name rename=(name=raw_value) );
run;
data work.DYNAMIC_VALUES;
set work.DYNAMIC_VALUES;
raw_value=upcase(display_value);
format raw_value;
run;
@@ -18,10 +18,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -31,17 +31,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
<h4> SAS Macros </h4>
@li dc_getlibs.sas
@@ -56,8 +56,7 @@
proc sql;
create table work.DYNAMIC_VALUES as
select distinct libraryname as display_value,
upcase(libraryref) as raw_value
select distinct upcase(libraryref) as raw_value
from work.mm_getLibs
order by 1;
@@ -18,10 +18,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -31,17 +31,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
**/
@@ -49,8 +49,7 @@
/* send back the raw and formatted values */
proc sql;
create table work.DYNAMIC_VALUES as
select distinct libref as display_value,
upcase(libref) as raw_value
select distinct upcase(libref) as raw_value
from &mpelib..mpe_tables
where &dc_dttmtfmt. < tx_to
order by 1;
@@ -12,17 +12,16 @@
<h4> Service Outputs </h4>
Output should be a single table called "work.dynamic_values" in the format
below. display_value should always be character, raw_value is unformatted
character/numeric.
below. raw_value is unformatted haracter/numeric.
<h5>DYNAMIC_VALUES</h5>
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -35,17 +34,17 @@
The FORCED_VALUE column can be used to force an extended value to be selected
by default when a particular value is chosen.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|FORCED_VALUE|
|---|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||.|
|1|DISCOUNT_RT|"40%"|N|0.4||0|
|1|DISCOUNT_RT|"30%"|N|0.3||1|
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|.|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|.|
|2|DISCOUNT_RT|"50%"|N|0.5||.|
|2|DISCOUNT_RT|"40%"|N|0.4||1|
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|.|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|1|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|FORCED_VALUE|
|---|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||.|
|1|DISCOUNT_RT|N|0.4||0|
|1|DISCOUNT_RT|N|0.3||1|
|1|CURRENCY_SYMBOL|C||"GBP"|.|
|1|CURRENCY_SYMBOL|C||"RSD"|.|
|2|DISCOUNT_RT|N|0.5||.|
|2|DISCOUNT_RT|N|0.4||1|
|2|CURRENCY_SYMBOL|C||"EUR"|.|
|2|CURRENCY_SYMBOL|C||"HKD"|1|
<h4> SAS Macros </h4>
@li dc_getlibs.sas
@@ -67,38 +66,34 @@ create table work.source as
where tx_to > &dc_dttmtfmt.
order by 1,2;
data work.DYNAMIC_VALUES (keep=display_index raw_value display_value);
data work.DYNAMIC_VALUES (keep=display_index raw_value );
set work.source end=last;
by libref;
if last.libref then do;
display_index+1;
raw_value=libref;
display_value=libref;
output;
end;
if last then do;
display_index+1;
raw_value='*ALL*';
display_value='*ALL*';
output;
end;
run;
data work.dynamic_extended_values(keep=display_index extra_col_name display_type
display_value RAW_VALUE_CHAR raw_value_num forced_value);
RAW_VALUE_CHAR raw_value_num forced_value);
set work.source end=last;
by libref dsn;
retain extra_col_name 'ALERT_DS';
retain display_type 'C';
retain raw_value_num .;
raw_value_char=dsn;
display_value=dsn;
forced_value=0;
if first.libref then display_index+1;
if last.libref then do;
display_value='*ALL*';
raw_value_char='*ALL*';
forced_value=1;
output;
@@ -13,17 +13,16 @@
<h4> Service Outputs </h4>
Output should be a single table called "work.dynamic_values" in the format
below. display_value should always be character, raw_value is unformatted
character/numeric.
below.
<h5>DYNAMIC_VALUES</h5>
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -36,17 +35,18 @@
The FORCED_VALUE column can be used to force an extended value to be selected
by default when a particular value is chosen.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|FORCED_VALUE|
|---|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||.|
|1|DISCOUNT_RT|"40%"|N|0.4||0|
|1|DISCOUNT_RT|"30%"|N|0.3||1|
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|.|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|.|
|2|DISCOUNT_RT|"50%"|N|0.5||.|
|2|DISCOUNT_RT|"40%"|N|0.4||1|
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|.|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|1|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
<h4> SAS Macros </h4>
@li dc_getlibs.sas
@@ -93,25 +93,24 @@ create table work.source as
and memtype='DATA';
create table work.members as
select distinct memname as display_value
select distinct memname as raw_value
from work.source;
data work.DYNAMIC_VALUES;
set work.members;
raw_value=display_value;
display_index=_n_;
run;
proc sql;
create table work.dynamic_extended_values as
select a.display_index
,b.name as display_value
,a.raw_value
,"C" as display_type
,b.name as RAW_VALUE_CHAR
,. as RAW_VALUE_NUM
from work.dynamic_values a
left join work.source b
on a.display_value=b.memname
on a.raw_value=b.memname
where b.type='num';
data work.dynamic_extended_values;
@@ -12,12 +12,11 @@
<h4> Service Outputs </h4>
Output should be a single table called "work.dynamic_values" in the format
below. display_value should always be character, raw_value is unformatted
character/numeric.
below.
|DISPLAY_VALUE:$|RAW_VALUE:??|
|---|---|
|$44.00|44|
|RAW_VALUE:??|
|---|
|44|
<h4> SAS Macros </h4>
@li dc_getlibs.sas
@@ -27,8 +26,7 @@
proc sql;
create table work.DYNAMIC_VALUES as
select distinct cats(some_num) as display_value,
some_num as raw_value
select distinct some_num as raw_value
from &libds
order by 1;
+15 -16
View File
@@ -17,10 +17,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -30,17 +30,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
@@ -55,7 +55,6 @@
proc sql;
create table work.DYNAMIC_VALUES as
select distinct groupname as display_value,
groupname as raw_value
select distinct groupname as raw_value
from work.groups
order by 1;
+15 -16
View File
@@ -18,10 +18,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -31,17 +31,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
<h4> SAS Macros </h4>
@li dc_assignlib.sas
@@ -89,8 +89,7 @@ run;
/* send back the raw and formatted values */
proc sql;
create table work.DYNAMIC_VALUES as
select distinct name as display_value,
upcase(name) as raw_value
select distinct upcase(name) as raw_value
from work.members
where MemType='DATA'
order by 1;
@@ -22,10 +22,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -35,17 +35,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5|` `|
|1|DISCOUNT_RT|"40%"|N|0.4|` `|
|1|DISCOUNT_RT|"30%"|N|0.3|` `|
|1|CURRENCY_SYMBOL|"GBP"|C|` `|"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C|` `|"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5|` `|
|2|DISCOUNT_RT|"40%"|N|0.4|` `|
|2|CURRENCY_SYMBOL|"EUR"|C|` `|"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C|` `|"HKD"|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
**/
@@ -61,8 +61,7 @@ run;
proc sql;
create table work.DYNAMIC_VALUES as
select distinct dsn as display_value,
upcase(dsn) as raw_value
select distinct upcase(dsn) as raw_value
from &mpelib..mpe_tables
(where=(&dc_dttmtfmt. < tx_to))
where libref in (select &srccol from work.source_row)
@@ -17,10 +17,10 @@
The RAW_VALUE column may be charactor or numeric. If DISPLAY_INDEX is not
provided, it is added automatically.
|DISPLAY_INDEX:best.|DISPLAY_VALUE:$|RAW_VALUE|
|---|---|---|
|1|$77.43|77.43|
|2|$88.43|88.43|
|DISPLAY_INDEX:best.|RAW_VALUE|
|---|---|
|1|77.43|
|2|88.43|
<h5>DYNAMIC_EXTENDED_VALUES</h5>
This table is optional. If provided, it will map the DISPLAY_INDEX from the
@@ -30,17 +30,17 @@
Should be used sparingly! The use of large tables here can slow down the
browser.
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_VALUE:$|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|
|1|DISCOUNT_RT|"50%"|N|0.5||
|1|DISCOUNT_RT|"40%"|N|0.4||
|1|DISCOUNT_RT|"30%"|N|0.3||
|1|CURRENCY_SYMBOL|"GBP"|C||"GBP"|
|1|CURRENCY_SYMBOL|"RSD"|C||"RSD"|
|2|DISCOUNT_RT|"50%"|N|0.5||
|2|DISCOUNT_RT|"40%"|N|0.4||
|2|CURRENCY_SYMBOL|"EUR"|C||"EUR"|
|2|CURRENCY_SYMBOL|"HKD"|C||"HKD"|
|DISPLAY_INDEX:best.|EXTRA_COL_NAME:$32.|DISPLAY_TYPE:$1.|RAW_VALUE_NUM|RAW_VALUE_CHAR:$5000|
|---|---|---|---|---|
|1|DISCOUNT_RT|N|0.5||
|1|DISCOUNT_RT|N|0.4||
|1|DISCOUNT_RT|N|0.3||
|1|CURRENCY_SYMBOL|C||"GBP"|
|1|CURRENCY_SYMBOL|C||"RSD"|
|2|DISCOUNT_RT|N|0.5||
|2|DISCOUNT_RT|N|0.4||
|2|CURRENCY_SYMBOL|C||"EUR"|
|2|CURRENCY_SYMBOL|C||"HKD"|
@@ -55,7 +55,6 @@
proc sql;
create table work.DYNAMIC_VALUES as
select distinct groupname as display_value,
groupuri as raw_value
select distinct groupuri as raw_value
from work.groups
order by 1;