@sasjs/core 4.59.1 → 4.59.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.
@@ -26,7 +26,7 @@
26
26
  @author Allan Bowe
27
27
  **/
28
28
 
29
- %macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
29
+ %macro mf_getuniquelibref(prefix=mc,maxtries=1000);
30
30
  %local x;
31
31
 
32
32
  %if ( %length(&prefix) gt 7 ) %then %do;
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "lint": "npx @sasjs/cli lint",
33
33
  "prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
34
34
  },
35
- "version": "4.59.1"
35
+ "version": "4.59.3"
36
36
  }
@@ -45,4 +45,9 @@
45
45
  %let syscc=0;
46
46
  %end;
47
47
 
48
+ %mf_abort(
49
+ iftrue=(&syscc ne 0),
50
+ msg=Cannot leave mfv_existfolder.sas with syscc=&syscc
51
+ )
52
+
48
53
  %mend mfv_existfolder;
@@ -49,4 +49,8 @@
49
49
  %let syscc=0;
50
50
  %end;
51
51
 
52
+ %mf_abort(
53
+ iftrue=(&syscc ne 0),
54
+ msg=Cannot leave &sysmacroname with syscc=&syscc
55
+ )
52
56
  %mend mfv_getpathuri;
@@ -95,6 +95,11 @@
95
95
  %end;
96
96
  %else %let dbg=*;
97
97
 
98
+ %mp_abort(
99
+ iftrue=(&syscc ne 0),
100
+ msg=Cannot enter &sysmacroname with syscc=&syscc
101
+ )
102
+
98
103
  %local oauth_bearer;
99
104
  %if &grant_type=detect %then %do;
100
105
  %if %symexist(&access_token_var) %then %let grant_type=authorization_code;
@@ -244,4 +249,16 @@ run;
244
249
  %put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put;
245
250
  %put &base_uri/SASJobExecution?_file=&path/&name;%put;
246
251
 
252
+ %if &mdebug=0 %then %do;
253
+ /* clear refs */
254
+ filename &fname1 clear;
255
+ filename &fref clear;
256
+ libname &libref2 clear;
257
+ %end;
258
+
259
+ %mp_abort(
260
+ iftrue=(&syscc ne 0),
261
+ msg=Cannot leave &sysmacroname with syscc=&syscc
262
+ )
263
+
247
264
  %mend mv_createfile;
@@ -46,6 +46,11 @@
46
46
  %end;
47
47
  %else %let dbg=*;
48
48
 
49
+ %mp_abort(
50
+ iftrue=(&syscc ne 0),
51
+ msg=Cannot enter &sysmacroname with syscc=&syscc
52
+ )
53
+
49
54
  %if %mfv_existfolder(&path)=1 %then %do;
50
55
  %&dbg.put &sysmacroname: &path already exists;
51
56
  data &outds;
@@ -55,6 +60,7 @@
55
60
  run;
56
61
  %return;
57
62
  %end;
63
+ %mp_abort(iftrue=(&syscc ne 0),msg=syscc=&syscc when folder checking)
58
64
 
59
65
  %local oauth_bearer;
60
66
  %if &grant_type=detect %then %do;
@@ -194,4 +200,8 @@ options noquotelenmax;
194
200
  filename &fname1 clear;
195
201
  libname &libref1 clear;
196
202
  %end;
203
+ %mp_abort(
204
+ iftrue=(&syscc ne 0),
205
+ msg=Cannot leave &sysmacroname with syscc=&syscc
206
+ )
197
207
  %mend mv_createfolder;