@sasjs/core 2.57.1 → 2.58.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.
@@ -0,0 +1,33 @@
1
+ /**
2
+ @file
3
+ @brief Returns 1 if the variable contains only digits 0-9, else 0
4
+ @details Note that numerics containing any punctuation (including decimals
5
+ or exponents) will be flagged zero.
6
+
7
+ If you'd like support for this, then do raise an issue (or even better, a
8
+ pull request!)
9
+
10
+ Usage:
11
+
12
+ %put %mf_isint(1) returns 1;
13
+ %put %mf_isint(1.1) returns 0;
14
+ %put %mf_isint(%str(1,1)) returns 0;
15
+
16
+ @param [in] arg input value to check
17
+
18
+ @version 9.2
19
+ **/
20
+
21
+ %macro mf_isint(arg
22
+ )/*/STORE SOURCE*/;
23
+ /* remove minus sign if exists */
24
+
25
+ %local val;
26
+ %if "%substr(%str(&arg),1,1)"="-" %then %let val=%substr(%str(&arg),2);
27
+ %else %let val=&arg;
28
+
29
+ /* check remaining chars */
30
+ %if %sysfunc(findc(%str(&val),,kd)) %then %do;0%end;
31
+ %else %do;1%end;
32
+
33
+ %mend mf_isint;
package/base/mp_init.sas CHANGED
@@ -46,7 +46,7 @@
46
46
  run;
47
47
 
48
48
  options
49
- autocorrect /* disallow mis-spelled procedure names */
49
+ noautocorrect /* disallow misspelled procedure names */
50
50
  compress=CHAR /* default is none so ensure we have something! */
51
51
  datastmtchk=ALLKEYWORDS /* protection from overwriting input datasets */
52
52
  %str(err)orcheck=STRICT /* catch errs in libname/filename statements */
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "dependencies": {
39
39
  "ts-loader": "^9.2.6"
40
40
  },
41
- "version": "2.57.1"
41
+ "version": "2.58.3"
42
42
  }
@@ -100,6 +100,8 @@ options noquotelenmax;
100
100
  %local href cnt;
101
101
  %let cnt=0;
102
102
  data _null_;
103
+ length rel href $512;
104
+ call missing(rel,href);
103
105
  set &libref1..links;
104
106
  if rel='members' then do;
105
107
  url=cats("'","&base_uri",href,"?limit=10000'");
@@ -92,6 +92,8 @@ data;run;
92
92
  %local joburi;
93
93
  %let joburi=0;
94
94
  data _null_;
95
+ length name uri $512;
96
+ call missing(name,uri);
95
97
  set &foldermembers;
96
98
  if name="&name" and uri=:'/jobDefinitions/definitions'
97
99
  then call symputx('joburi',uri);
@@ -115,6 +115,8 @@ data;run;
115
115
  %local joburi;
116
116
  %let joburi=0;
117
117
  data _null_;
118
+ length name uri $512;
119
+ call missing(name,uri);
118
120
  set &foldermembers;
119
121
  if name="&name" and uri=:'/jobDefinitions/definitions'
120
122
  then call symputx('joburi',uri);