Proc SQL 内で、マクロ変数を使用したいのです&condition3
が、マクロ変数の文字列「t1」を「t6」に置き換えたいと考えています。次の式を機能させるにはどうすればよいtranslate(&condition3,'T6','T1')
ですか。
ちなみに、次のように&condition3
解決されます。and t1.store in ('1234')
完全なクエリ:
Proc sql;
Create table xxx as
Select....
From ...
Where condition1
And condition 2
&condition3