From ac46489f1178896d68082861e98f83651c0768d2 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Sun, 11 Oct 2020 00:34:08 +0200 Subject: [PATCH] fix: enabling mp_abort.sas to work in Viya when useComputeApi is true (and the SYS_JES_JOB_URI is empty) --- all.sas | 11 +++++++++-- base/mp_abort.sas | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index 21dbda0..eeaae95 100644 --- a/all.sas +++ b/all.sas @@ -1551,8 +1551,15 @@ Usage: %end; %if %symexist(SYS_JES_JOB_URI) %then %do; - /* refer web service output to file service in one hit */ - filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"; + /* setup webout */ + OPTIONS NOBOMFILE; + %if "X&SYS_JES_JOB_URI.X"="XX" %then %do; + filename _webout temp lrecl=999999 mod; + %end; + %else %do; + filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" + name="_webout.json" lrecl=999999 mod; + %end; %end; /* send response in SASjs JSON format */ diff --git a/base/mp_abort.sas b/base/mp_abort.sas index ebcc994..17f863a 100644 --- a/base/mp_abort.sas +++ b/base/mp_abort.sas @@ -71,8 +71,15 @@ %end; %if %symexist(SYS_JES_JOB_URI) %then %do; - /* refer web service output to file service in one hit */ - filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"; + /* setup webout */ + OPTIONS NOBOMFILE; + %if "X&SYS_JES_JOB_URI.X"="XX" %then %do; + filename _webout temp lrecl=999999 mod; + %end; + %else %do; + filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" + name="_webout.json" lrecl=999999 mod; + %end; %end; /* send response in SASjs JSON format */