<?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: The best way to get an advanced programming skills in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287143#M82</link>
    <description>&lt;P&gt;Thank RW9&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 10:58:27 GMT</pubDate>
    <dc:creator>toconero</dc:creator>
    <dc:date>2016-07-26T10:58:27Z</dc:date>
    <item>
      <title>The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287134#M77</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have studied business administration and management, but now I'm working as a statistical, I use SAS in my work. I'm studying for the Base Certification SAS. I'm not good at programming. I find really difficult to understand how a Macro SAS runs.&lt;/P&gt;&lt;P&gt;I would like to get the Advanced Certification SAS, but I found this wall, Macros SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggerations for me to learn Macro SAS ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287134#M77</guid>
      <dc:creator>toconero</dc:creator>
      <dc:date>2016-07-26T10:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287137#M78</link>
      <description>&lt;P&gt;This: &lt;A href="https://support.sas.com/resources/papers/proceedings13/120-2013.pdf" target="_blank"&gt;Macro Basics for New SAS Users&lt;/A&gt; should be a fine starting point.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287137#M78</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-26T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287138#M79</link>
      <description>&lt;P&gt;The most important thing to keep in mind: the SAS Macro Language is a tool for automated creation of program text; it is not supposed to solve things by itself, but to create code (and code snippets) that then accomplishes the desired task.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287138#M79</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-26T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287139#M80</link>
      <description>&lt;P&gt;Its quite a simple concept at its core, imagine it as a kind of Find/Replace system. &amp;nbsp;Its basic function is to remove the need to repeat code or data items across your code. &amp;nbsp;My suggestion is to work backwards to start with, so learn Base SAS - which is the real programming language - fully. &amp;nbsp;Understand data structures and how normalised versus transposed and vice versa can work in different situtations - once you know these you will never *need* to use macro. &amp;nbsp;You may however *want* to use it in certain places, for re-useable code, or repeated code for instance. &amp;nbsp;Also, once you have a firm grasp of Base, write the code which you want to macrotize straight off, for example:&lt;/P&gt;
&lt;PRE&gt;data want1;
  set sashelp.class;
run;&lt;/PRE&gt;
&lt;P&gt;That will run and show we create a dataset want1 based off sashelp.class. &amp;nbsp;Now say we want five datasets - want1 want2 etc. we could copy paste this code, or we could macrotize it.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro Loop (times=);
  %do i=1 %to &amp;amp;times;
    data want&amp;amp;i.;
      set sashelp.class;
    run;
  %end;
%mend Loop;

%Loop (times=5);&lt;/PRE&gt;
&lt;P&gt;What have we done here, well the Base SAS code has not changed much, only the created datastep output name which is now want&amp;amp;i. &amp;nbsp;&amp;amp; is a special character to tell the pre-processor to replace this macro variable with the contents of the macro variable, so on iteration 1, i=1, so &amp;amp;i. becomes 1 = want1. &amp;nbsp;I is defined from the macro do loop - which is virtually the same as the Base SAS datastep loop, except it only functions in macro code. &amp;nbsp;When this macro is called, what the pre-processor is doing is generating the text Base SAS code:&lt;/P&gt;
&lt;PRE&gt;data want1;
  set sashelp.class;
run;
data want2;
  set sashelp.class;
run;
data want3;
  set sashelp.class;
run;
etc. up to 5.&lt;/PRE&gt;
&lt;P&gt;That is basically all macro is, a text generator (or find and replace if you will), and that text which is generated is then fed into the Base SAS compiler - which checks and runs the Base SAS code. &amp;nbsp;So as long as your macro/macro variables resolve into valid executable Base SAS code, you are fine. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you google, there are plenty of good examples out there, you could also try one of the training's which you would have to pay for:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/training/us/paths/prg.html" target="_blank"&gt;https://support.sas.com/training/us/paths/prg.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287139#M80</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-26T10:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287142#M81</link>
      <description>&lt;P&gt;For the perspective of Advance certification, PROC SQL topics covers the most part of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In advance sas certification guide, there are only 4 chapters on macros that is what needed to clear the exam. These are well explained in the book.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287142#M81</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-07-26T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to get an advanced programming skills</title>
      <link>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287143#M82</link>
      <description>&lt;P&gt;Thank RW9&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/The-best-way-to-get-an-advanced-programming-skills/m-p/287143#M82</guid>
      <dc:creator>toconero</dc:creator>
      <dc:date>2016-07-26T10:58:27Z</dc:date>
    </item>
  </channel>
</rss>

