Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_dc_filtersummary.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Filtersummary DDL
4 @details For storing summary filter values. Used by
5 mp_filterstore.sas.
6
7**/
8
9
10%macro mddl_dc_filtersummary(libds=WORK.FILTER_SUMMARY);
11
12%local nn lib;
13%if "%substr(&sysver,1,1)" ne "4" and "%substr(&sysver,1,1)" ne "5" %then %do;
14 %let nn=not null;
15%end;
16%else %let nn=;
17
18 proc sql;
19 create table &libds(
20 filter_rk num &nn,
21 filter_hash char(32) &nn,
22 filter_table char(41) &nn,
23 processed_dttm num &nn format=E8601DT26.6
24 );
25
26 %let libds=%upcase(&libds);
27 %if %index(&libds,.)=0 %then %let lib=WORK;
28 %else %let lib=%scan(&libds,1,.);
29
30 proc datasets lib=&lib noprint;
31 modify %scan(&libds,-1,.);
32 index create filter_rk /nomiss unique;
33 quit;
34
35%mend mddl_dc_filtersummary;