@sasjs/core 4.57.2 → 4.57.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.
package/package.json
CHANGED
package/viya/mv_createfile.sas
CHANGED
|
@@ -187,7 +187,14 @@ proc http method='POST' out=&fname1 &oauth_bearer in=&fref
|
|
|
187
187
|
%if &grant_type=authorization_code %then %do;
|
|
188
188
|
"Authorization"="Bearer &&&access_token_var"
|
|
189
189
|
%end;
|
|
190
|
-
|
|
190
|
+
"Content-Disposition"=
|
|
191
|
+
%if "&ext"="SVG" %then %do;
|
|
192
|
+
"filename=""&name"";"
|
|
193
|
+
%end;
|
|
194
|
+
%else %do;
|
|
195
|
+
"&contentdisp filename=""&name""; name=""&name"";"
|
|
196
|
+
%end;
|
|
197
|
+
;
|
|
191
198
|
run;
|
|
192
199
|
%if &mdebug=1 %then %put &sysmacroname POST &=url
|
|
193
200
|
&=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
|
|
@@ -122,7 +122,7 @@ options noquotelenmax;
|
|
|
122
122
|
%let path=%substr(&path,1,%length(&path)-1);
|
|
123
123
|
|
|
124
124
|
/* ensure folder exists */
|
|
125
|
-
|
|
125
|
+
%&dbg.put &sysmacroname: Path &path being checked / created;
|
|
126
126
|
%mv_createfolder(path=&path)
|
|
127
127
|
|
|
128
128
|
%local base_uri; /* location of rest apis */
|
|
@@ -955,7 +955,7 @@ run;
|
|
|
955
955
|
libname &libref1 clear;
|
|
956
956
|
%end;
|
|
957
957
|
|
|
958
|
-
%put
|
|
959
|
-
%put
|
|
958
|
+
%put &sysmacroname: Job &name created! Check it out:;
|
|
959
|
+
%put &url/SASJobExecution?_PROGRAM=&path/&name;
|
|
960
960
|
|
|
961
961
|
%mend mv_createwebservice;
|
package/viya/mv_deletejes.sas
CHANGED
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
options noquotelenmax;
|
|
70
70
|
%local base_uri; /* location of rest apis */
|
|
71
71
|
%let base_uri=%mf_getplatform(VIYARESTAPI);
|
|
72
|
-
|
|
73
|
-
%put &sysmacroname: fetching details for &path ;
|
|
72
|
+
/* fetch the members of the folder to get the uri */
|
|
74
73
|
%local fname1;
|
|
75
74
|
%let fname1=%mf_getuniquefileref();
|
|
76
75
|
proc http method='GET' out=&fname1 &oauth_bearer
|
|
@@ -108,7 +107,9 @@ proc http method='GET' out=&fname1a &oauth_bearer
|
|
|
108
107
|
headers "Authorization"="Bearer &&&access_token_var";
|
|
109
108
|
%end;
|
|
110
109
|
run;
|
|
111
|
-
%
|
|
110
|
+
%if &SYS_PROCHTTP_STATUS_CODE ne 200 %then %do;
|
|
111
|
+
%put &=sysmacroname &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
|
|
112
|
+
%end;
|
|
112
113
|
%local libref1a;
|
|
113
114
|
%let libref1a=%mf_getuniquelibref();
|
|
114
115
|
libname &libref1a JSON fileref=&fname1a;
|
|
@@ -140,7 +141,7 @@ run;
|
|
|
140
141
|
,msg=%str(&SYS_PROCHTTP_STATUS_CODE &SYS_PROCHTTP_STATUS_PHRASE)
|
|
141
142
|
)
|
|
142
143
|
%end;
|
|
143
|
-
%else %put &sysmacroname: &path/&name
|
|
144
|
+
%else %put &sysmacroname: &path/&name deleted;
|
|
144
145
|
|
|
145
146
|
/* clear refs */
|
|
146
147
|
filename &fname1 clear;
|