<?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 Understanding code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140654#M28306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;I the following code, "if&amp;nbsp; 0 then" do?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data base;&lt;/P&gt;&lt;P&gt;if 0 then modify base;&lt;/P&gt;&lt;P&gt;set one two e04 open=defer;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 20:06:19 GMT</pubDate>
    <dc:creator>kaushal2040</dc:creator>
    <dc:date>2015-01-27T20:06:19Z</dc:date>
    <item>
      <title>Understanding code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140654#M28306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;I the following code, "if&amp;nbsp; 0 then" do?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data base;&lt;/P&gt;&lt;P&gt;if 0 then modify base;&lt;/P&gt;&lt;P&gt;set one two e04 open=defer;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140654#M28306</guid>
      <dc:creator>kaushal2040</dc:creator>
      <dc:date>2015-01-27T20:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140655#M28307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 is treated by SAS in logical comparisons as FALSE. So basically the code says not to do anything as the part following THEN only executes when the comparison is true.&lt;/P&gt;&lt;P&gt;This may be a programmer holding bit for testing other logic or does not know the conditions that will be needed but knows the conditional part will be needed later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140655#M28307</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-27T20:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140656#M28308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ballardw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code says do not modify the base data set?&amp;nbsp;&amp;nbsp; I was wondering what "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; but knows the conditional part will be needed later'"&amp;nbsp; mean in your last sentence.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140656#M28308</guid>
      <dc:creator>kaushal2040</dc:creator>
      <dc:date>2015-01-27T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140657#M28309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I am writing code per some directions from the boss and he says "We'll need to modify this table but the conditions wont' be set until the meeting next week." I know that I'll have to provide for handling that condition, which could be quite complex, but I don't know what it is at the time I start coding the pieces I do have requirements for. I put the stub of code you're asking about as a reminder of where in the process I need to implement that condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 22:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140657#M28309</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-27T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140658#M28310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program basically appends datasets ONE TWO and E04 to the end of the dataset BASE.&lt;/P&gt;&lt;P&gt;The "IF 0 THEN" does absolutely nothing in this case.&amp;nbsp; If you remove it and just have the MODIFY statement the code runs the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This construct is sometimes used with a SET statement instead of a MODIFY statement.&amp;nbsp; The effect then is that the compiler sees the SET statement and adds the variables in the referenced data set to the data vector but the IF 0 THEN causes the SET statement to never execute.&amp;nbsp; It is a quick way to make sure your new dataset has the same variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 22:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-code/m-p/140658#M28310</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-01-27T22:10:43Z</dc:date>
    </item>
  </channel>
</rss>

