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 (November 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 2 Nov 2009 14:26:59 -0500
Reply-To:     SAS Swamy <sasswamy@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         SAS Swamy <sasswamy@GMAIL.COM>
Subject:      WHERE Statement - Variable

Hello,

I understand about the WHERE statement. Can someone please help with the code , how to store the value to a variable based on a WHERE condition

proc print data=TEST_DATA1; where vaccode = 'test'; run;

proc print data=TEST_DATA2; where ELIG_TYPE = 'P'; run;

I am able to get the results with the above condition , I need to store the value to a variable and calculate the percentage from the overall count

for e-g

Total = 600 ( overall total ) test = 22 ( only code = 'test' ) percentage 3.66

Thanks, - swamy.


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