From c160b5058b44e42484e60df00059bb166ea38e9a Mon Sep 17 00:00:00 2001 From: munja Date: Tue, 25 Jan 2022 00:30:28 +0100 Subject: [PATCH] fix: comma placement in mp_stackdiffs.sas --- all.sas | 2 +- base/mp_stackdiffs.sas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/all.sas b/all.sas index 967fac4..8bb711d 100644 --- a/all.sas +++ b/all.sas @@ -10272,8 +10272,8 @@ select distinct tgtvar_nm into: missvars separated by ' ' by key_hash; if _n_=1 then put 'proc sql;'; if first.key_hash then put "update &outmod set " / ' '@@; - else put ' ,'@@; if is_diff=1 then do; + if not first.key_hash then put ' ,'@@; if tgtvar_type='C' then do; length qstr $32767; qstr=quote(trim(NEWVAL_CHAR)); diff --git a/base/mp_stackdiffs.sas b/base/mp_stackdiffs.sas index 4160e00..1831d7e 100644 --- a/base/mp_stackdiffs.sas +++ b/base/mp_stackdiffs.sas @@ -561,8 +561,8 @@ select distinct tgtvar_nm into: missvars separated by ' ' by key_hash; if _n_=1 then put 'proc sql;'; if first.key_hash then put "update &outmod set " / ' '@@; - else put ' ,'@@; if is_diff=1 then do; + if not first.key_hash then put ' ,'@@; if tgtvar_type='C' then do; length qstr $32767; qstr=quote(trim(NEWVAL_CHAR));