2
總之創建一個數據集的變量,我很努力實現以下目標:從宏觀變量同時包含引號,雙引號和不匹配的報價
data _null_;
input x $ 1-50 ;
call symput('problem',x);
cards4;
'this' "is '' my "string"" from 'hell!
;;;;
run;
data _null_;
x="%superQ(problem)";
put x=;
run;
的supe叭功能不管理不匹配報價的一個好工作然而連續引號(「」)仍然解析回單引號的變量X
這是尋址?
當前的結果:
x='this' "is '' my "string" from 'hell!
期望的結果:
x='this' "is '' my "string"" from 'hell!