From 506cf1812faa4a08853f083d15a3daf228436a1b Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Tue, 8 Jun 2021 16:59:43 +0300 Subject: [PATCH] fix: deal with dashes in sysencoding --- all.sas | 4 ++-- meta/mm_createwebservice.sas | 2 +- meta/mm_webout.sas | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index de46e08..593d3a8 100644 --- a/all.sas +++ b/all.sas @@ -9041,7 +9041,7 @@ data _null_; put '%local i tempds jsonengine; '; put ' '; put '/* see https://github.com/sasjs/core/issues/41 */ '; - put '%if %upcase(&SYSENCODING)=WLATIN1 %then %let jsonengine=PROCJSON; '; + put '%if "%upcase(&SYSENCODING)"="WLATIN1" %then %let jsonengine=PROCJSON; '; put '%else %let jsonengine=DATASTEP; '; put ' '; put ' '; @@ -12532,7 +12532,7 @@ run; %local i tempds jsonengine; /* see https://github.com/sasjs/core/issues/41 */ -%if %upcase(&SYSENCODING)=WLATIN1 %then %let jsonengine=PROCJSON; +%if "%upcase(&SYSENCODING)"="WLATIN1" %then %let jsonengine=PROCJSON; %else %let jsonengine=DATASTEP; diff --git a/meta/mm_createwebservice.sas b/meta/mm_createwebservice.sas index 44b9d32..3f3387e 100644 --- a/meta/mm_createwebservice.sas +++ b/meta/mm_createwebservice.sas @@ -269,7 +269,7 @@ data _null_; put '%local i tempds jsonengine; '; put ' '; put '/* see https://github.com/sasjs/core/issues/41 */ '; - put '%if %upcase(&SYSENCODING)=WLATIN1 %then %let jsonengine=PROCJSON; '; + put '%if "%upcase(&SYSENCODING)"="WLATIN1" %then %let jsonengine=PROCJSON; '; put '%else %let jsonengine=DATASTEP; '; put ' '; put ' '; diff --git a/meta/mm_webout.sas b/meta/mm_webout.sas index 799072c..72fdcbd 100644 --- a/meta/mm_webout.sas +++ b/meta/mm_webout.sas @@ -39,7 +39,7 @@ %local i tempds jsonengine; /* see https://github.com/sasjs/core/issues/41 */ -%if %upcase(&SYSENCODING)=WLATIN1 %then %let jsonengine=PROCJSON; +%if "%upcase(&SYSENCODING)"="WLATIN1" %then %let jsonengine=PROCJSON; %else %let jsonengine=DATASTEP;