<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogging about all things SAS &#187; SAS Functions</title>
	<atom:link href="http://blog.saasinct.com/tag/sas-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.saasinct.com</link>
	<description>::       Sharing with the world everything we discover about SAS.</description>
	<lastBuildDate>Wed, 01 Sep 2010 06:56:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SAS Monotonic (would you like Gin and a slice of Lemon with that)</title>
		<link>http://blog.saasinct.com/2008/04/05/sas-monotonic-would-you-like-gin-and-a-slice-of-lemon-with-that/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=sas-monotonic-would-you-like-gin-and-a-slice-of-lemon-with-that</link>
		<comments>http://blog.saasinct.com/2008/04/05/sas-monotonic-would-you-like-gin-and-a-slice-of-lemon-with-that/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 20:13:46 +0000</pubDate>
		<dc:creator>Shane Gibson</dc:creator>
				<category><![CDATA[Code and Stuff]]></category>
		<category><![CDATA[SAS Enterprise Guide]]></category>
		<category><![CDATA[SAS Functions]]></category>

		<guid isPermaLink="false">http://blog.sasinct.com/2008/04/05/sas-monotonic-would-you-like-gin-and-a-slice-of-lemon-with-that/</guid>
		<description><![CDATA[I was using Enterprise Guide the other day to merge some data into a single table and I needed to generate a unique sequence for a derived column. I asked around for the best option and was told that using &#8216;_n_&#8217;in a datastep would do i, but of course this would have to be a [...]]]></description>
			<content:encoded><![CDATA[<p>I was using Enterprise Guide the other day to merge some data into a single table and I needed to generate a unique sequence for a derived column.</p>
<p>I asked around for the best option and was told that using &#8216;_n_&#8217;in a datastep would do i, but of course this would have to be a custom code node, and I was using the Enterprise Guide filter and query wizard, which meant I would have to create a second step within my process flow.</p>
<p>No biggy, but within Oracle I would have just called the Sequence function and all would have been good,</p>
<p>Then our resident SAS Geek (note the removal of <a href="http://blog.sasinct.com/2008/02/07/the-value-of-sas-enterprise-guide/">Uber</a>) mentioned that I could use &#8216;Monotonic()&#8217;.  So I created a new computed column in the query, added Monotonic() as the expression and Bob&#8217;s you uncle (or even Aunt these days) EG produced a unique sequence in the new column.</p>
<p>The Monotonic() function is apparently experimental in SAS 9.1.  But was mentioned in a SUGI paper : <a href="http://www.sasinct.com/index.php?option=com_docman&amp;task=doc_download&amp;gid=51&amp;Itemid=" class="doclink">Helpful Undocumented Features in SAS</a></p>
<p>And according to Wikipedia it is:</p>
<p><font color="#999999">&#8220;In <a href="http://en.wikipedia.org/wiki/Mathematics" title="Mathematics">mathematics</a>, a <strong>monotonic function</strong> (or <strong>monotone function</strong>) is a <a href="http://en.wikipedia.org/wiki/Function_%28mathematics%29" title="Function (mathematics)">function</a> which preserves the given order.&#8221;</font></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.saasinct.com/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.saasinct.com/2008/04/05/sas-monotonic-would-you-like-gin-and-a-slice-of-lemon-with-that/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SAS Functions</title>
		<link>http://blog.saasinct.com/2008/02/16/sas-functions/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=sas-functions</link>
		<comments>http://blog.saasinct.com/2008/02/16/sas-functions/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 08:50:16 +0000</pubDate>
		<dc:creator>Shane Gibson</dc:creator>
				<category><![CDATA[Code and Stuff]]></category>
		<category><![CDATA[SAS Functions]]></category>
		<category><![CDATA[SAS Help]]></category>
		<category><![CDATA[SAS Online Documentation]]></category>

		<guid isPermaLink="false">http://blog.sasinct.com/2008/02/16/sas-functions/</guid>
		<description><![CDATA[SAS functions enable you to add powerful logic to your SAS code. According to the SAS Online Documentation, SAS functions are defined as: &#8220;A SAS function performs a computation or system manipulation on arguments and returns a value. Most functions use arguments supplied by the user, but a few obtain their arguments from the operating [...]]]></description>
			<content:encoded><![CDATA[<p>SAS functions enable you to add powerful logic to your SAS code.</p>
<p><font color="#000000">According to the <a href="http://support.sas.com/documentation/index.html" target="_blank" title="SAS Online Documentation">SAS Online Documentation</a>, SAS functions are defined as:</font></p>
<p><font color="#999999">&#8220;A SAS function performs a computation or system manipulation on arguments and returns a value. Most functions use arguments supplied by the user, but a few obtain their arguments from the operating environment.&#8221;</font></p>
<p>You can see details on what SAS functions are and how they can be used at <a href="http://support.sas.com/onlinedoc/913/getDoc/en/lrcon.hlp/a002612373.htm" target="_blank" title="SAS Functions and Call Routines">SAS Functions and Call Routines overview </a>online documentation page.</p>
<p>You can also see a complete list of the functions available at the <a href="http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a000245852.htm" title="SAS Functons and Call Routines Dictionary" target="_blank">SAS Functions and Call Routines Dictionary</a> online documentation page.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.saasinct.com/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.saasinct.com/2008/02/16/sas-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
