@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.
Files changed (2) hide show
  1. package/base/mp_dirlist.sas +15 -10
  2. package/package.json +1 -1
@@ -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
- %local basevars appvars usedatastep;
202
- %let basevars=%mf_getvarlist(&outds);
203
- %let appvars=%mf_getvarlist(&out_ds);
204
- %let newvars=%length(%mf_wordsinstr1butnotstr2(Str1=&appvars,Str2=&basevars));
205
-
206
- %if %mf_existds(&outds) and &newvars>0 %then %do;
207
- data &outds;
208
- set &outds &out_ds;
209
- run;
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 force nowarn;
217
+ proc append base=&outds data=&out_ds;
213
218
  run;
214
219
  %end;
215
220
 
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "dependencies": {
39
39
  "ts-loader": "^9.2.6"
40
40
  },
41
- "version": "3.9.2"
41
+ "version": "3.9.3"
42
42
  }