<?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 Re: %SYSFUNC(SUBSTR(&amp;amp;VAR1,1,5)) vs %SUBSTR(&amp;amp;VAR1,1,5) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409048#M279511</link>
    <description>&lt;P&gt;%SUBSTR has existed for decades, along with a handful of additional macro language functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At some point, SAS decided that macro language should be able to use hundreds of functions that were available to DATA steps, but didn't exist in macro language.&amp;nbsp; Instead of rewriting those functions for macro language, SAS invented %SYSFUNC which lets you call most DATA step functions (SUBSTR included).&amp;nbsp; To prevent existing programs from breaking, no functionality was removed.&amp;nbsp; Both versions are acceptable.&amp;nbsp; But why would you add %SYSFUNC when you don't have to?&amp;nbsp; It only complicates the expression.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 10:35:52 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-10-31T10:35:52Z</dc:date>
    <item>
      <title>%SYSFUNC(SUBSTR(&amp;VAR1,1,5)) vs %SUBSTR(&amp;VAR1,1,5)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409017#M279509</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can&amp;nbsp;you&amp;nbsp;let me know the difference between when we use a Base SAS function with %SYSFUNC vs when we use a macro function directly?&lt;/P&gt;&lt;P&gt;For instance, what is the difference between&amp;nbsp;&lt;STRONG&gt;%SYSFUNC(SUBSTR(&amp;amp;VAR1,1,5))&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;%SUBSTR(&amp;amp;VAR1,1,5).&amp;nbsp;&lt;/STRONG&gt;Both seem to produce the same result. If there is no difference, then why do we have a separate %SUBSTR especially for Macro processing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409017#M279509</guid>
      <dc:creator>ShagilImam</dc:creator>
      <dc:date>2017-10-31T09:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSFUNC(SUBSTR(&amp;VAR1,1,5)) vs %SUBSTR(&amp;VAR1,1,5)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409020#M279510</link>
      <description>&lt;P&gt;The macro preprocessor is a text processor, so it makes sense to have macro equivalents of commonly used string manipulation functions to avoid unnecessary %sysfunc's.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409020#M279510</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-31T09:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSFUNC(SUBSTR(&amp;VAR1,1,5)) vs %SUBSTR(&amp;VAR1,1,5)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409048#M279511</link>
      <description>&lt;P&gt;%SUBSTR has existed for decades, along with a handful of additional macro language functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At some point, SAS decided that macro language should be able to use hundreds of functions that were available to DATA steps, but didn't exist in macro language.&amp;nbsp; Instead of rewriting those functions for macro language, SAS invented %SYSFUNC which lets you call most DATA step functions (SUBSTR included).&amp;nbsp; To prevent existing programs from breaking, no functionality was removed.&amp;nbsp; Both versions are acceptable.&amp;nbsp; But why would you add %SYSFUNC when you don't have to?&amp;nbsp; It only complicates the expression.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 10:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSFUNC-SUBSTR-amp-VAR1-1-5-vs-SUBSTR-amp-VAR1-1-5/m-p/409048#M279511</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-10-31T10:35:52Z</dc:date>
    </item>
  </channel>
</rss>

