<?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 Condition statement, making code more efficient in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445200#M283080</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a program to clean my data for analysis. I&amp;nbsp;write a lot of repetitive statements and I wanted to learn how best to make my code concise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: I have a variable ETR2011, ETR2012, ETR2013... to 2015 which is the "effective tax rate" each year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to drop the enterprise from my data if any of these years&amp;nbsp;shows a null value for ETR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2011 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2012 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2013 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2014 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2015 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on a macro or a loop, I'm really new, to make this one line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done the same for generating the variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2011= ((C92300_2011+C92400_2011)/C58460_2011);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2011 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2012= ((C92300_2012+C92400_2012)/C58460_2012);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2012 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2013= ((C92300_2013+C92400_2013)/C58460_2013);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2013 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2014= ((C92300_2014+C92400_2014)/C58460_2014);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2014 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2015= ((C92300_2015+C92400_2015)/C58460_2015);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2015 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be simple, but I can use this logic in the future! Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 15:26:11 GMT</pubDate>
    <dc:creator>KG2</dc:creator>
    <dc:date>2018-03-13T15:26:11Z</dc:date>
    <item>
      <title>Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445200#M283080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a program to clean my data for analysis. I&amp;nbsp;write a lot of repetitive statements and I wanted to learn how best to make my code concise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: I have a variable ETR2011, ETR2012, ETR2013... to 2015 which is the "effective tax rate" each year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to drop the enterprise from my data if any of these years&amp;nbsp;shows a null value for ETR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2011 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2012 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2013 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2014 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ETR2015 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on a macro or a loop, I'm really new, to make this one line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done the same for generating the variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2011= ((C92300_2011+C92400_2011)/C58460_2011);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2011 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2012= ((C92300_2012+C92400_2012)/C58460_2012);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2012 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2013= ((C92300_2013+C92400_2013)/C58460_2013);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2013 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2014= ((C92300_2014+C92400_2014)/C58460_2014);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2014 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ETR2015= ((C92300_2015+C92400_2015)/C58460_2015);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;format ETR2015 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be simple, but I can use this logic in the future! Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445200#M283080</guid>
      <dc:creator>KG2</dc:creator>
      <dc:date>2018-03-13T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445204#M283081</link>
      <description>&lt;P&gt;1. Use variable lists&lt;/P&gt;
&lt;P&gt;2. Use functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if ETR2011 =. then delete;
if ETR2012 =. then delete;
if ETR2013 =. then delete;
if ETR2014 =. then delete;
if ETR2015 =. then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is equivalent to saying if any value is missing then delete. Instead, use the NMISS() function to count the number of missing and if any are missing then delete the row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if nmiss(of etr2011-etr2015) &amp;gt;0 then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For your other calculations look at using arrays instead.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154406"&gt;@KG2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am building a program to clean my data for analysis. I&amp;nbsp;write a lot of repetitive statements and I wanted to learn how best to make my code concise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: I have a variable ETR2011, ETR2012, ETR2013... to 2015 which is the "effective tax rate" each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to drop the enterprise from my data if any of these years&amp;nbsp;shows a null value for ETR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2011 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2012 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2013 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2014 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2015 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions on a macro or a loop, I'm really new, to make this one line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done the same for generating the variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2011= ((C92300_2011+C92400_2011)/C58460_2011);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2011 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2012= ((C92300_2012+C92400_2012)/C58460_2012);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2012 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2013= ((C92300_2013+C92400_2013)/C58460_2013);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2013 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2014= ((C92300_2014+C92400_2014)/C58460_2014);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2014 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2015= ((C92300_2015+C92400_2015)/C58460_2015);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2015 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be simple, but I can use this logic in the future! Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445204#M283081</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-13T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445205#M283082</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445205#M283082</guid>
      <dc:creator>KG2</dc:creator>
      <dc:date>2018-03-13T15:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445207#M283083</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;I&amp;nbsp;write a lot of repetitive statements and I wanted to learn how best to make my code concise." - data modelling is the first thing to learn.&amp;nbsp; Transposed data is rarely the best method of storing and processing data in code, it is fine for review but that is really the only time it is better.&amp;nbsp; Look at what you have you have:&lt;BR /&gt;You firstly have a "year" element.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You then have a "number" associated with each year&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Not including any other variables as can't see those).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the model would be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;YEAR&amp;nbsp; &amp;nbsp;VALUE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This simplifies things a lot as variables never change, just rows.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445207#M283083</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-13T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445208#M283084</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154406"&gt;@KG2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am building a program to clean my data for analysis. I&amp;nbsp;write a lot of repetitive statements and I wanted to learn how best to make my code concise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: I have a variable ETR2011, ETR2012, ETR2013... to 2015 which is the "effective tax rate" each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to drop the enterprise from my data if any of these years&amp;nbsp;shows a null value for ETR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set ETR_developer;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2011 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2012 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2013 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2014 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if ETR2015 =. then delete;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions on a macro or a loop, I'm really new, to make this one line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done the same for generating the variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2011= ((C92300_2011+C92400_2011)/C58460_2011);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2011 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2012= ((C92300_2012+C92400_2012)/C58460_2012);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2012 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2013= ((C92300_2013+C92400_2013)/C58460_2013);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2013 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2014= ((C92300_2014+C92400_2014)/C58460_2014);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2014 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;ETR2015= ((C92300_2015+C92400_2015)/C58460_2015);&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;format ETR2015 4.2;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be simple, but I can use this logic in the future! Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Code like this is one reason you will see multiple comments about "data should not exist in your variable name" and that data that looks like&lt;/P&gt;
&lt;P&gt;Id etr2011 etr2012 etr2013 etr2014 c9230_2011 c9230_2012 &amp;nbsp;c9230_2013&amp;nbsp;&amp;nbsp;c9230_2014&lt;/P&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;P&gt;id year etr c9230;&lt;/P&gt;
&lt;P&gt;or similar.&lt;/P&gt;
&lt;P&gt;Then instead of multiple lines like:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ETR2011= ((C92300_2011+C92400_2011)/C58460_2011);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;which likely need to be added each year&lt;/P&gt;
&lt;P&gt;you would have&lt;/P&gt;
&lt;P&gt;ETR = ((C92300+C92400)/C58460);&lt;/P&gt;
&lt;P&gt;and the code would not need to change each year.&lt;/P&gt;
&lt;P&gt;The delete code would be simple:&lt;/P&gt;
&lt;P&gt;if missing(etr) then delete; or&lt;/P&gt;
&lt;P&gt;if etr=. then delete;&lt;/P&gt;
&lt;P&gt;Multiyear Reports would easily be created with the YEAR variable providing a grouping role.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445208#M283084</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-13T15:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445210#M283085</link>
      <description>&lt;P&gt;If you're interested in learning how to best structure your data I recommend the Hadley Wickham Tidy Data paper.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jstatsoft.org/article/view/v059i10/v59i10.pdf" target="_blank"&gt;https://www.jstatsoft.org/article/view/v059i10/v59i10.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445210#M283085</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-13T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Condition statement, making code more efficient</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445212#M283086</link>
      <description>&lt;P&gt;Thank you - this is so helpful and I am absolutely going to be studying this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Condition-statement-making-code-more-efficient/m-p/445212#M283086</guid>
      <dc:creator>KG2</dc:creator>
      <dc:date>2018-03-13T15:51:47Z</dc:date>
    </item>
  </channel>
</rss>

