<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - sarathannapareddy</title>
<link>http://snipplr.com/users/sarathannapareddy/tags/call</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 18:28:11 GMT</pubDate>
<item>
<title>(SAS) CALL EXECUTE: Easy way to print or sort multiple files.</title>
<link>http://snipplr.com/view/33199/call-execute-easy-way-to-print-or-sort-multiple-files/</link>
<description><![CDATA[ <p>When printing multiple files, or sorting multiple datasets, the traditional method is to write multiple steps as below.

Proc print data=libref.ae; var _all_; run;
Proc print data=libref.conmed; var _all_; run;
Proc print data=libref.demog; var _all_; run;
Proc print data=libref.lab; var _all_; run;
Proc print data=libref.medhist; var _all_; run; 
If you are like me who likes to simplify the traditional SAS code here is the tip. CALL EXECUTE comes to rescue here.</p> ]]></description>
<pubDate>Mon, 26 Apr 2010 19:42:48 GMT</pubDate>
<guid>http://snipplr.com/view/33199/call-execute-easy-way-to-print-or-sort-multiple-files/</guid>
</item>
<item>
<title>(SAS) Finding the number of observations in the Dataset</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) Call Sumput vs Call SymputX</title>
<link>http://snipplr.com/view/18185/call-sumput-vs-call-symputx/</link>
<description><![CDATA[ <p>Call Symput:

Use CALL SYMPUT is you need to assign a data step value to a macro variable.

Syntax: Call Symput (“Macro variable”, character value)

The first argument to the Symput routine is the name of the macro variable to be assigned to the value from the second argument.</p> ]]></description>
<pubDate>Tue, 11 Aug 2009 16:15:40 GMT</pubDate>
<guid>http://snipplr.com/view/18185/call-sumput-vs-call-symputx/</guid>
</item>
<item>
<title>(SAS) Renaming All variables in the SAS dataset using SASHELP VIEWS/DICTIONARY.tables</title>
<link>http://snipplr.com/view/17699/renaming-all-variables-in-the-sas-dataset-using-sashelp-viewsdictionarytables/</link>
<description><![CDATA[ <p>We can rename all the variables in the dataset using the SASHELP views or Dictionary.Tables... I.e SAS metadata...

here is how....</p> ]]></description>
<pubDate>Thu, 30 Jul 2009 13:12:57 GMT</pubDate>
<guid>http://snipplr.com/view/17699/renaming-all-variables-in-the-sas-dataset-using-sashelp-viewsdictionarytables/</guid>
</item>
<item>
<title>(SAS) maxvarlen_macro: Check the Length of all character variables length is LT 200</title>
<link>http://snipplr.com/view/15682/maxvarlenmacro-check-the-length-of-all-character-variables-length-is-lt-200/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 07 Jun 2009 22:25:04 GMT</pubDate>
<guid>http://snipplr.com/view/15682/maxvarlenmacro-check-the-length-of-all-character-variables-length-is-lt-200/</guid>
</item>
<item>
<title>(SAS) Retrieve the path name and filename of executing program ... programmatically</title>
<link>http://snipplr.com/view/13860/retrieve-the-path-name-and-filename-of-executing-program--programmatically/</link>
<description><![CDATA[ <p>Oftentimes, I was asked to keep the name and path of the executing program in the FOOTNOTE of the generated table or listings.

I have always created a macro variable using the %let statement and, then I called the Macro variable in the footnote statement to get the name of the program. Eventhough it is simple.. it may not be suitable when we write application which need to self document...

Here is another technique which can be used to retrieve the pathname and filename (last executed) .....

To get the last opened filename:

proc sql noprint;
select scan(xpath,-1,'\') into :progname from sashelp.vextfl
where upcase(xpath) like '%.SAS';
quit;

%put &amp;progname; 
read more.. at ...http://studysas.blogspot.com/2009/04/how-to-determine-executing-program-name.html</p> ]]></description>
<pubDate>Tue, 07 Apr 2009 13:09:15 GMT</pubDate>
<guid>http://snipplr.com/view/13860/retrieve-the-path-name-and-filename-of-executing-program--programmatically/</guid>
</item>
<item>
<title>(SAS) Hoe to check if the variable exsits in the dataset or not</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>
</channel>
</rss>