<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do functions work in SAS(intuition)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547059#M151539</link>
    <description>&lt;P&gt;I memorized a lot of the top SAS functions. However, what is the computer thinking or doing when it is executing a function in the data step?&amp;nbsp; I have a taught myself a lot in the last few months. However, I don't have a strong enough grasp of the PDV and what the computer is exactly doing. Any suggested resources to help me understand better?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 23:40:23 GMT</pubDate>
    <dc:creator>mikepark</dc:creator>
    <dc:date>2019-03-28T23:40:23Z</dc:date>
    <item>
      <title>How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547059#M151539</link>
      <description>&lt;P&gt;I memorized a lot of the top SAS functions. However, what is the computer thinking or doing when it is executing a function in the data step?&amp;nbsp; I have a taught myself a lot in the last few months. However, I don't have a strong enough grasp of the PDV and what the computer is exactly doing. Any suggested resources to help me understand better?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 23:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547059#M151539</guid>
      <dc:creator>mikepark</dc:creator>
      <dc:date>2019-03-28T23:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547075#M151546</link>
      <description>&lt;P&gt;A big difference is whether a function is called in an IF or a WHERE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE statements are applied before the PDV is loaded, so the functions can't access the variables from the PDV and are often much slower than the same functions used in an IF statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 01:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547075#M151546</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-03-29T01:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547088#M151555</link>
      <description>&lt;P&gt;What is this is the code I am running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data mixed;&lt;BR /&gt;set learn.mixed;&lt;BR /&gt;Name = upcase(Name);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The observation is read into the PDV and then the upcase function is applied to an observation. This is before it moves the next observation that is read in and then the function is applied to it?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 03:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547088#M151555</guid>
      <dc:creator>mikepark</dc:creator>
      <dc:date>2019-03-29T03:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547093#M151558</link>
      <description>&lt;P&gt;1. The SET statement loads the data from LEARN.MIXED into the PDV&lt;/P&gt;
&lt;P&gt;2. The upcase function update the value of a variable in the PDV.&lt;/P&gt;
&lt;P&gt;3. The run statement triggers an (implicit) output in the MIXED table.&lt;/P&gt;
&lt;P&gt;4. The iterator go to the top of the data step. Executes 1. again if more observations are available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 03:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547093#M151558</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-03-29T03:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547103#M151561</link>
      <description>&lt;P&gt;Do what many SAS programmers have never done...read this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/api/docsets/lrcon/9.4/content/lrcon.pdf" target="_blank"&gt;https://documentation.sas.com/api/docsets/lrcon/9.4/content/lrcon.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I was first learning SAS a billion years ago, this was about 120 pages.&amp;nbsp; How times have changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's (now) a big doc - skip the parts you don't need right now (eg. Part 3 if you don't have CAS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you do invest the time to read this over a couple weekends it will serve you well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start with Chapter 20 if you want a head start, but I recommend you read most of this document.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 05:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547103#M151561</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-03-29T05:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547107#M151563</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223561"&gt;@mikepark&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15043"&gt;@ScottBass&lt;/a&gt;&amp;nbsp; Reading the Concepts is seriously worth it. You don't need to understand everything that's in it as a beginner. Just make it a habit to browse through this documentation from time to time as you'll pick-up more and more as you progress and even more importantly you start to understand where you can tweak your coding approaches to better align them with how SAS works.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 06:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547107#M151563</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-03-29T06:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do functions work in SAS(intuition)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547116#M151567</link>
      <description>&lt;P&gt;The online version of the SAS Language Reference: Concepts is found &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=titlepage.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 07:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-functions-work-in-SAS-intuition/m-p/547116#M151567</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-29T07:19:38Z</dc:date>
    </item>
  </channel>
</rss>

