10%macro mddl_dc_maxkeytable(libds=WORK.MAXKEYTABLE);
14 keytable varchar(41) label=
'Base table in libref.dataset format',
15 keycolumn
char(32) format=$32.
16 label=
'The Retained key field containing the key values.',
18 'Integer representing current max RK or SK value in the KEYTABLE',
19 processed_dttm num format=E8601DT26.6
20 label=
'Datetime this value was last updated'
24 %let libds=%upcase(&libds);
25 %
if %index(&libds,.)=0 %then %let lib=WORK;
26 %
else %let lib=%scan(&libds,1,.);
28 proc datasets lib=&lib noprint;
29 modify %scan(&libds,-1,.);
30 index create keytable /nomiss unique;
33%mend mddl_dc_maxkeytable;