@sasjs/core 4.21.0 → 4.21.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.
@@ -30,7 +30,7 @@
30
30
  %put No feature was requested for detection;
31
31
  %end;
32
32
  %else %if &feature=COLCONSTRAINTS %then %do;
33
- %if %substr(&sysver,1,1)=4 %then 0;
33
+ %if "%substr(&sysver,1,1)"="4" or "%substr(&sysver,1,1)"="5" %then 0;
34
34
  %else 1;
35
35
  %end;
36
36
  %else %if &feature=PROCLUA %then %do;
package/base/mp_init.sas CHANGED
@@ -67,7 +67,7 @@ options
67
67
  validvarname=V7 /* avoid special characters etc in variable names */
68
68
  varinitchk=%str(ERR)OR /* avoid data mistakes from variable name typos */
69
69
  varlenchk=%str(ERR)OR /* fail hard if truncation (data loss) can result */
70
- %if %substr(&sysver,1,1) ne 4 %then %do;
70
+ %if "%substr(&sysver,1,1)" ne "4" and "%substr(&sysver,1,1)" ne "5" %then %do;
71
71
  noautocorrect /* disallow misspelled procedure names */
72
72
  dsoptions=note2err /* undocumented - convert bad NOTEs to ERRs */
73
73
  %end;
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.21.0"
38
+ "version": "4.21.3"
39
39
  }
@@ -59,7 +59,7 @@
59
59
  outref=0,
60
60
  outlogds=_null_
61
61
  )/*/STORE SOURCE*/;
62
- %local dbg fref1 chopout1 chopout2;
62
+ %local dbg i var ds1 fref1 chopout1 chopout2;
63
63
  %if &mdebug=1 %then %do;
64
64
  %put &sysmacroname entry vars:;
65
65
  %put _local_;
@@ -82,13 +82,15 @@
82
82
  %let ds1=%mf_getuniquename();
83
83
  data &ds1;
84
84
  length fileref $8 name $32 filename $256 var $300;
85
- webcount=countw("&inputfiles");
86
- do i=1 to webcount;
87
- var=scan("&inputfiles",i,' ');
88
- fileref=scan(var,1,':');
89
- name=scan(var,2,':');
90
- filename=cats(name,'.csv');
91
- output;
85
+ if "&inputfiles" ne "0" then do;
86
+ webcount=countw("&inputfiles");
87
+ do i=1 to webcount;
88
+ var=scan("&inputfiles",i,' ');
89
+ fileref=scan(var,1,':');
90
+ name=scan(var,2,':');
91
+ filename=cats(name,'.csv');
92
+ output;
93
+ end;
92
94
  end;
93
95
  run;
94
96