@sasjs/core 3.9.2 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/mp_dirlist.sas +15 -10
- package/package.json +1 -1
package/base/mp_dirlist.sas
CHANGED
|
@@ -198,18 +198,23 @@ run;
|
|
|
198
198
|
* The above transpose can mean that some updates create additional columns.
|
|
199
199
|
* This necessitates the occasional use of datastep over proc append.
|
|
200
200
|
*/
|
|
201
|
-
%
|
|
202
|
-
%
|
|
203
|
-
%let
|
|
204
|
-
%let
|
|
205
|
-
|
|
206
|
-
%if
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
201
|
+
%if %mf_existds(&outds) %then %do;
|
|
202
|
+
%local basevars appvars newvars;
|
|
203
|
+
%let basevars=%mf_getvarlist(&outds);
|
|
204
|
+
%let appvars=%mf_getvarlist(&out_ds);
|
|
205
|
+
%let newvars=%length(%mf_wordsinstr1butnotstr2(Str1=&appvars,Str2=&basevars));
|
|
206
|
+
%if &newvars>0 %then %do;
|
|
207
|
+
data &outds;
|
|
208
|
+
set &outds &out_ds;
|
|
209
|
+
run;
|
|
210
|
+
%end;
|
|
211
|
+
%else %do;
|
|
212
|
+
proc append base=&outds data=&out_ds force nowarn;
|
|
213
|
+
run;
|
|
214
|
+
%end;
|
|
210
215
|
%end;
|
|
211
216
|
%else %do;
|
|
212
|
-
proc append base=&outds data=&out_ds
|
|
217
|
+
proc append base=&outds data=&out_ds;
|
|
213
218
|
run;
|
|
214
219
|
%end;
|
|
215
220
|
|
package/package.json
CHANGED