| 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 |
|---|
Hello everyone,
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 .
data _NULL_;
call symputx('yesobs',not eof);
stop;
set TEST_DATASET end=eof;
run;
%put YESOBS=&yesobs;
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
data _NULL_;
if &yesobs > 0 then
%process_dates(data=TEST);
run;
Can someone please let me know what Is the Issue and how to resolve this
Thanks In Advance,
- swamy
|