1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-11 02:50:06 +00:00

fix: streamlining viya deploys

This commit is contained in:
allan
2025-05-29 17:51:23 +01:00
parent 33cb36fb8f
commit 8d2f084316
5 changed files with 16 additions and 18 deletions

View File

@@ -164,8 +164,9 @@ options noquotelenmax;
'Content-Type'='application/vnd.sas.content.folder+json'
'Accept'='application/vnd.sas.content.folder+json';
run;
%put &=SYS_PROCHTTP_STATUS_CODE;
%put &=SYS_PROCHTTP_STATUS_PHRASE;
%if &SYS_PROCHTTP_STATUS_CODE ne 200 %then %do;
%put &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
%end;
%mp_abort(iftrue=(&SYS_PROCHTTP_STATUS_CODE ne 201)
,mac=&sysmacroname
,msg=%str(&SYS_PROCHTTP_STATUS_CODE &SYS_PROCHTTP_STATUS_PHRASE)