<?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: Explanation Of SAS Codes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263230#M51502</link>
    <description>&lt;P&gt;What part of that code do you need expaining, i.e. what is the question? &amp;nbsp;Judging by this and your other question, you would be best off starting by learning SAS, Base SAS and Macro SAS. &amp;nbsp;You can learn this by using the help videos given by SAS, doing a course, reading the manual etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At a brief glimpse:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;rc=filename ("fdir","&amp;amp;path");&lt;/P&gt;
&lt;P&gt;rc is a variable which holds the result of calling the function filname. &amp;nbsp;I.e. rc stands for Return Code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below is a macro - a text generation tool - it creates some macro varibales and then start to DO a loop. &amp;nbsp;You are missing a % before macro, and my first question would be why are you doing it this way in the first place?&lt;/P&gt;
&lt;P&gt;macro readf(p);&lt;BR /&gt;&amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;set dirlist nobs=n;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('f'||compress(_n_),trim(left(fname)));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('nf', compress(n));&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;%do i = 1 %to &amp;amp;nf;&lt;BR /&gt;&amp;nbsp;%put &amp;amp;p.\&amp;amp;&amp;amp;f&amp;amp;i;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 15:20:22 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-04-12T15:20:22Z</dc:date>
    <item>
      <title>Explanation Of SAS Codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263226#M51500</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please can someone please explain to me what the following codes do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;rc=filename ("fdir","&amp;amp;path");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;macro readf(p);&lt;BR /&gt;&amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;set dirlist nobs=n;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('f'||compress(_n_),trim(left(fname)));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('nf', compress(n));&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%do i = 1 %to &amp;amp;nf;&lt;BR /&gt;&amp;nbsp;%put &amp;amp;p.\&amp;amp;&amp;amp;f&amp;amp;i;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263226#M51500</guid>
      <dc:creator>109393</dc:creator>
      <dc:date>2016-04-12T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation Of SAS Codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263230#M51502</link>
      <description>&lt;P&gt;What part of that code do you need expaining, i.e. what is the question? &amp;nbsp;Judging by this and your other question, you would be best off starting by learning SAS, Base SAS and Macro SAS. &amp;nbsp;You can learn this by using the help videos given by SAS, doing a course, reading the manual etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At a brief glimpse:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;rc=filename ("fdir","&amp;amp;path");&lt;/P&gt;
&lt;P&gt;rc is a variable which holds the result of calling the function filname. &amp;nbsp;I.e. rc stands for Return Code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below is a macro - a text generation tool - it creates some macro varibales and then start to DO a loop. &amp;nbsp;You are missing a % before macro, and my first question would be why are you doing it this way in the first place?&lt;/P&gt;
&lt;P&gt;macro readf(p);&lt;BR /&gt;&amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;set dirlist nobs=n;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('f'||compress(_n_),trim(left(fname)));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;call symput ('nf', compress(n));&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;%do i = 1 %to &amp;amp;nf;&lt;BR /&gt;&amp;nbsp;%put &amp;amp;p.\&amp;amp;&amp;amp;f&amp;amp;i;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263230#M51502</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-12T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation Of SAS Codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263398#M51548</link>
      <description>&lt;P&gt;Google is your friend. Really. I mean it.&lt;/P&gt;
&lt;P&gt;Everytime you see a statement/function/format/whatever you're not familiar with, enter "SAS &lt;EM&gt;whatever_you_want_to_know_about&lt;/EM&gt;" into big G, and you'll get the respective documentation, most often as the first hit.&lt;/P&gt;
&lt;P&gt;It's what I do when I stumble across something I haven't seen yet, or haven't used for a long time, or am not very familiar yet.&lt;/P&gt;
&lt;P&gt;All the "old hands" around here do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you then have a more specific question, come here. But this community is intended as a help for advanced problems, not as the place for initial learning. This is done in the courses you have already been pointed to.&lt;/P&gt;
&lt;P&gt;We're the track&amp;amp;field coaches and dance instructors, but we expect you already have learned how to walk.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 05:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explanation-Of-SAS-Codes/m-p/263398#M51548</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-13T05:52:57Z</dc:date>
    </item>
  </channel>
</rss>

