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;