@sasjs/core 4.21.1 → 4.21.4

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.1"
38
+ "version": "4.21.4"
39
39
  }
@@ -390,6 +390,11 @@ data _null_;
390
390
  put '%end; ';
391
391
  put ' ';
392
392
  put '%else %if &action=ARR or &action=OBJ %then %do; ';
393
+ put ' %if "%substr(&sysver,1,1)"="4" or "%substr(&sysver,1,1)"="5" %then %do; ';
394
+ put ' /* functions in formats unsupported */ ';
395
+ put ' %put &sysmacroname: forcing missing back to NULL as feature not supported; ';
396
+ put ' %let missing=NULL; ';
397
+ put ' %end; ';
393
398
  put ' %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref ';
394
399
  put ' ,engine=DATASTEP,missing=&missing,showmeta=&showmeta ';
395
400
  put ' ) ';
@@ -100,6 +100,11 @@
100
100
  %end;
101
101
 
102
102
  %else %if &action=ARR or &action=OBJ %then %do;
103
+ %if "%substr(&sysver,1,1)"="4" or "%substr(&sysver,1,1)"="5" %then %do;
104
+ /* functions in formats unsupported */
105
+ %put &sysmacroname: forcing missing back to NULL as feature not supported;
106
+ %let missing=NULL;
107
+ %end;
103
108
  %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref
104
109
  ,engine=DATASTEP,missing=&missing,showmeta=&showmeta
105
110
  )