mirror of
https://github.com/sasjs/core.git
synced 2025-12-10 14:04:36 +00:00
fix: ensuring svg rendering from SAS drive
Also reducing put statements in the log
This commit is contained in:
@@ -187,7 +187,14 @@ proc http method='POST' out=&fname1 &oauth_bearer in=&fref
|
||||
%if &grant_type=authorization_code %then %do;
|
||||
"Authorization"="Bearer &&&access_token_var"
|
||||
%end;
|
||||
"Content-Disposition"= "&contentdisp filename=""&name""; name=""&name"";";
|
||||
"Content-Disposition"=
|
||||
%if "&ext"="SVG" %then %do;
|
||||
"filename=""&name"";"
|
||||
%end;
|
||||
%else %do;
|
||||
"&contentdisp filename=""&name""; name=""&name"";"
|
||||
%end;
|
||||
;
|
||||
run;
|
||||
%if &mdebug=1 %then %put &sysmacroname POST &=url
|
||||
&=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
|
||||
|
||||
@@ -122,7 +122,7 @@ options noquotelenmax;
|
||||
%let path=%substr(&path,1,%length(&path)-1);
|
||||
|
||||
/* ensure folder exists */
|
||||
%put &sysmacroname: Path &path being checked / created;
|
||||
%&dbg.put &sysmacroname: Path &path being checked / created;
|
||||
%mv_createfolder(path=&path)
|
||||
|
||||
%local base_uri; /* location of rest apis */
|
||||
@@ -955,7 +955,7 @@ run;
|
||||
libname &libref1 clear;
|
||||
%end;
|
||||
|
||||
%put NOTE: &sysmacroname: Job &name successfully created! Check it out:;
|
||||
%put NOTE-;%put NOTE- &url/SASJobExecution?_PROGRAM=&path/&name;%put NOTE-;
|
||||
%put &sysmacroname: Job &name created! Check it out:;
|
||||
%put &url/SASJobExecution?_PROGRAM=&path/&name;
|
||||
|
||||
%mend mv_createwebservice;
|
||||
|
||||
@@ -69,8 +69,7 @@
|
||||
options noquotelenmax;
|
||||
%local base_uri; /* location of rest apis */
|
||||
%let base_uri=%mf_getplatform(VIYARESTAPI);
|
||||
|
||||
%put &sysmacroname: fetching details for &path ;
|
||||
/* fetch the members of the folder to get the uri */
|
||||
%local fname1;
|
||||
%let fname1=%mf_getuniquefileref();
|
||||
proc http method='GET' out=&fname1 &oauth_bearer
|
||||
@@ -108,7 +107,9 @@ proc http method='GET' out=&fname1a &oauth_bearer
|
||||
headers "Authorization"="Bearer &&&access_token_var";
|
||||
%end;
|
||||
run;
|
||||
%put &=SYS_PROCHTTP_STATUS_CODE;
|
||||
%if &SYS_PROCHTTP_STATUS_CODE ne 200 %then %do;
|
||||
%put &=sysmacroname &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
|
||||
%end;
|
||||
%local libref1a;
|
||||
%let libref1a=%mf_getuniquelibref();
|
||||
libname &libref1a JSON fileref=&fname1a;
|
||||
@@ -140,7 +141,7 @@ run;
|
||||
,msg=%str(&SYS_PROCHTTP_STATUS_CODE &SYS_PROCHTTP_STATUS_PHRASE)
|
||||
)
|
||||
%end;
|
||||
%else %put &sysmacroname: &path/&name successfully deleted;
|
||||
%else %put &sysmacroname: &path/&name deleted;
|
||||
|
||||
/* clear refs */
|
||||
filename &fname1 clear;
|
||||
|
||||
Reference in New Issue
Block a user