1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-08 18:00:06 +00:00

fix: removing warning from mf_wordsinstr1xxx macros, compiling all.sas, fixing MOD changes in mp_stackdiffs.sas

This commit is contained in:
munja
2022-01-25 00:04:54 +01:00
parent 6224844915
commit bfe4b1ec8b
4 changed files with 1008 additions and 313 deletions

View File

@@ -560,9 +560,16 @@ select distinct tgtvar_nm into: missvars separated by ' '
set &auditlibds(where=(move_type='M')) end=lastobs;
by key_hash;
if _n_=1 then put 'proc sql;';
if first.key_hash then put "update &outmod set ";
comma=ifc(first.key_hash=0,',',' ');
if tgtvar_type='C' then put ' ' comma TGTVAR_NM '=trim("' NEWVAL_CHAR '")';
if first.key_hash then put "update &outmod set " / ' '@@;
else put ' ,'@@;
if is_diff=1 then do;
if tgtvar_type='C' then do;
length qstr $32767;
qstr=quote(trim(NEWVAL_CHAR));
put tgtvar_nm '=' qstr;
end;
else put tgtvar_nm '=' newval_num;
end;
if last.key_hash then put ' where key_hash=trim("' key_hash '");';
if lastobs then put "alter table &outmod drop key_hash;";
run;