<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/sas/tags/variable</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 18 May 2013 20:55:30 GMT</pubDate>
<item>
<title>(SAS) Finding the number of observations in the Dataset - sarathannapareddy</title>
<link>http://snipplr.com/view/18186/finding-the-number-of-observations-in-the-dataset/</link>
<description><![CDATA[ <p>There are a number of ways of finding out the number of observations in a SAS data set and, while they are documented in a number of different places, I have decided to collect them together in one place. At the very least, it means that I can find them again.

Read more at: http://studysas.blogspot.com/2008/08/finding-number-of-observations-in-sas.html</p> ]]></description>
<pubDate>Tue, 11 Aug 2009 16:22:13 GMT</pubDate>
<guid>http://snipplr.com/view/18186/finding-the-number-of-observations-in-the-dataset/</guid>
</item>
<item>
<title>(SAS) Hoe to check if the variable exsits in the dataset or not - sarathannapareddy</title>
<link>http://snipplr.com/view/13859/hoe-to-check-if-the-variable-exsits-in-the-dataset-or-not/</link>
<description><![CDATA[ <p>In SAS sometimes, we need to check whether the variable is exist in the dataset or not, we usually run the proc contents program and physically check if the variable exist in the dataset or not.

If we want to check it programmatically, then use the following code....

Sample dataset:...

data _null_;
dset=open('old');
check=varnum(dset,'SCORE4');
call symput('chk',check);
run;

%put &amp;chk;</p> ]]></description>
<pubDate>Tue, 07 Apr 2009 13:06:32 GMT</pubDate>
<guid>http://snipplr.com/view/13859/hoe-to-check-if-the-variable-exsits-in-the-dataset-or-not/</guid>
</item>
<item>
<title>(SAS) Setting variable value based on value of another variable. - webonomic</title>
<link>http://snipplr.com/view/5632/setting-variable-value-based-on-value-of-another-variable/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 31 Mar 2008 13:58:33 GMT</pubDate>
<guid>http://snipplr.com/view/5632/setting-variable-value-based-on-value-of-another-variable/</guid>
</item>
</channel>
</rss>