|Date: ||Thu, 1 Apr 2010 14:29:46 -0400|
|Reply-To: ||SAS Swamy <sasswamy@GMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||SAS Swamy <sasswamy@GMAIL.COM>|
|Subject: ||Calling Macro|
I have to run a Macro based on a condition , that only If rows exist in a
data set then execute macro.
This is how I am checking the data set whether any rows exist or Not .
call symputx('yesobs',not eof);
set TEST_DATASET end=eof;
In the output , I am able to see 0 , when I try to open the TEST_DATASET
it shows 0 observation.
But in the following condition , even though I am checking for value > 0 ,
the Macro is getting executed
if &yesobs > 0 then
Can someone please let me know what Is the Issue and how to resolve this
Thanks In Advance,