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 (April 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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