LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page