Skip to content

Commit 33a487b

Browse files
author
allan
committed
fix: addresses #400
1 parent 7240cf0 commit 33a487b

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

viya/mfv_existfolder.sas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@
4545
%let syscc=0;
4646
%end;
4747

48+
%mf_abort(
49+
iftrue=(&syscc ne 0),
50+
msg=Cannot leave mfv_existfolder.sas with syscc=&syscc
51+
)
52+
4853
%mend mfv_existfolder;

viya/mfv_getpathuri.sas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@
4949
%let syscc=0;
5050
%end;
5151

52+
%mf_abort(
53+
iftrue=(&syscc ne 0),
54+
msg=Cannot leave &sysmacroname with syscc=&syscc
55+
)
5256
%mend mfv_getpathuri;

viya/mv_createfile.sas

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@
9595
%end;
9696
%else %let dbg=*;
9797

98+
%mp_abort(
99+
iftrue=(&syscc ne 0),
100+
msg=Cannot enter &sysmacroname with syscc=&syscc
101+
)
102+
98103
%local oauth_bearer;
99104
%if &grant_type=detect %then %do;
100105
%if %symexist(&access_token_var) %then %let grant_type=authorization_code;
@@ -251,4 +256,9 @@ run;
251256
libname &libref2 clear;
252257
%end;
253258

259+
%mp_abort(
260+
iftrue=(&syscc ne 0),
261+
msg=Cannot leave &sysmacroname with syscc=&syscc
262+
)
263+
254264
%mend mv_createfile;

viya/mv_createfolder.sas

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
%end;
4747
%else %let dbg=*;
4848

49+
%mp_abort(
50+
iftrue=(&syscc ne 0),
51+
msg=Cannot enter &sysmacroname with syscc=&syscc
52+
)
53+
4954
%if %mfv_existfolder(&path)=1 %then %do;
5055
%&dbg.put &sysmacroname: &path already exists;
5156
data &outds;
@@ -55,6 +60,7 @@
5560
run;
5661
%return;
5762
%end;
63+
%mp_abort(iftrue=(&syscc ne 0),msg=syscc=&syscc when folder checking)
5864

5965
%local oauth_bearer;
6066
%if &grant_type=detect %then %do;
@@ -194,4 +200,8 @@ options noquotelenmax;
194200
filename &fname1 clear;
195201
libname &libref1 clear;
196202
%end;
203+
%mp_abort(
204+
iftrue=(&syscc ne 0),
205+
msg=Cannot leave &sysmacroname with syscc=&syscc
206+
)
197207
%mend mv_createfolder;

0 commit comments

Comments
 (0)