LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 3 Dec 2008 15:27:07 -0500
Reply-To:   SAS_learner <proccontents@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   SAS_learner <proccontents@GMAIL.COM>
Subject:   Finding if Variable Exits or Not
Content-Type:   text/plain; charset=ISO-8859-1

I need to find out If a Varible exists in the dataset . So for that I am trying to do something like this

*If Not Missing (Aehfrml) then Cmdosfrm = Strip(Upcase(Aehfrml)); * Else Cmdosfrm=" " ;

If %Symexist(Aehfrml) Then Do ; If Not Missing(Aehfrml) then Cmdosfrm = Strip(Upcase(Aehfrml)); End ; Else Cmdosfrm=" " ;

If Not Missing(Aehmddf)and Not Missing (Aehmdd) then Cmdostxt = Strip(Aehmddf) ; Else Cmdostxt = "" ;

When I do Not Missing () does it checks if a variable exits or does have any values ??

and Can I use %Symexist inside the datastep if not is there a call routine that I can


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