空白
|
)
|
=
|
NE
|
|
;
|
(
|
|
|
LE
|
|
¬
|
+
|
#
|
LT
|
|
^
|
—
|
AND
|
GE
|
|
~
|
*
|
OR
|
GT
|
|
, (カンマ)
|
/
|
NOT
|
|
|
'
|
<
|
IN
|
|
|
“
|
>
|
EQ
|
|
%let printit=%str(proc print; run;);
%macro keepit1(size); %if &size=big %then %put %str(keep city _numeric_;); %else %put %str(keep city;); %mend keepit1;
%keepit1(big)
keep city _numeric_;
%let innocent=%str(I didn%'t do it!);
%macro example; %local myvar; %let myvar=abc; %put %nrstr(The string &myvar appears in log output,); %put instead of the variable value.; %mend example; %example
The string &myvar appears in log output, instead of the variable value.
The string abc appears in log output, instead of the variable value.
%macro credits(d=%nrstr(Mary&Stacy&Joan Ltd.)); footnote "Designed by &d"; %mend credits;
%credits()
footnote "Designed by Mary&Stacy&Joan Ltd.";
WARNING: Apparent symbolic reference STACY not resolved. WARNING: Apparent symbolic reference JOAN not resolved.
This is the result of %NRSTR
という文字列を作成する場合を考えます。 次に、このプログラムを示します。
%put This is the result of %nrstr(%nrstr);
%nrstr
をマスクしないと、マクロプロセッサは、関数の左かっこが欠損していることを示すエラーメッセージを発行します。