From 412182a0223d7bc465b1539acf396dd84b0f9d25 Mon Sep 17 00:00:00 2001 From: munja Date: Tue, 17 May 2022 22:27:39 +0100 Subject: [PATCH] fix: fileref option in ms_runstp --- all.sas | 6 ++++-- server/ms_runstp.sas | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index a7ebd85..fe7b9ce 100644 --- a/all.sas +++ b/all.sas @@ -20795,6 +20795,7 @@ proc http method='POST' headerin=&authref in=&mainref out=&outref %end; run; %if (&SYS_PROCHTTP_STATUS_CODE ne 200 and &SYS_PROCHTTP_STATUS_CODE ne 201) +or &mdebug=1 %then %do; data _null_;infile &outref;input;putlog _infile_;run; %end; @@ -20810,7 +20811,7 @@ options &optval; %if &outlogds ne _null_ or &mdebug=1 %then %do; %local dumplib; %let dumplib=%mf_getuniquelibref(); - libname &dumplib json (&outref); + libname &dumplib json fileref=&outref; data &outlogds; set &dumplib..log; %if &mdebug=1 %then %do; @@ -20828,7 +20829,8 @@ options &optval; filename &authref; filename &mainref; %end; -%mend ms_runstp;/** +%mend ms_runstp; +/** @file @brief Will execute a SASjs web service on SASjs Server @details Prepares the input files and retrieves the resulting datasets from diff --git a/server/ms_runstp.sas b/server/ms_runstp.sas index 95c517a..753f227 100644 --- a/server/ms_runstp.sas +++ b/server/ms_runstp.sas @@ -162,6 +162,7 @@ proc http method='POST' headerin=&authref in=&mainref out=&outref %end; run; %if (&SYS_PROCHTTP_STATUS_CODE ne 200 and &SYS_PROCHTTP_STATUS_CODE ne 201) +or &mdebug=1 %then %do; data _null_;infile &outref;input;putlog _infile_;run; %end; @@ -177,7 +178,7 @@ options &optval; %if &outlogds ne _null_ or &mdebug=1 %then %do; %local dumplib; %let dumplib=%mf_getuniquelibref(); - libname &dumplib json (&outref); + libname &dumplib json fileref=&outref; data &outlogds; set &dumplib..log; %if &mdebug=1 %then %do; @@ -195,4 +196,4 @@ options &optval; filename &authref; filename &mainref; %end; -%mend ms_runstp; \ No newline at end of file +%mend ms_runstp;