Date: Mon, 19 Oct 1998 08:21:03 -0500
Reply-To: hwang@ZSASSOCIATES.COM
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: hongjie Wang <hwang@ZSASSOCIATES.COM>
Subject: macro question
Content-type: text/plain; charset=us-ascii
Dear friends, I have a macro question, do the following two segments of
code equivalent?A
(1). %macro test(datset);
data _null_;
if &datset eq " " then call symput('datset,', '_LAST_');
run;
...
...
(2). %macro test(datset);
%if %datset eq %str() %then %let datset=_LAST;
...
...
Also, is it legal to do the following:
(3) data _null_;
if &datset eq %str() then call symput('datset', '_LAST');
Thanks,
Hongjie Wang
|