<?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: Why the do group is processing even if the condition is not satisfied? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133323#M1202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; chk=open('one');&lt;/P&gt;&lt;P&gt; chk1=varnum(chk, 'LINENO');&lt;/P&gt;&lt;P&gt; if chk1 ne 0 then call execute(' data two; set one; if lineno ne 1; run;');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 04:02:05 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-11-07T04:02:05Z</dc:date>
    <item>
      <title>Why the do group is processing even if the condition is not satisfied?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133320#M1199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;Can any one help in this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input a b;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk=open('one');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk1=varnum(chk, 'LINENO');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if chk1 ne 0 then do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set one;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if LINENO ne 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;Here the Do group is getting processed and giving note in the log that "Variable LINENO is uninitialised"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;Thank you in adnvance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 08:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133320#M1199</guid>
      <dc:creator>devarayalu</dc:creator>
      <dc:date>2013-11-06T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why the do group is processing even if the condition is not satisfied?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133321#M1200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS compiles the whole data step. So even though the line that references the variable LINENO is inside of a DO loop that will never execute SAS will still create the variable in the program data vector.&amp;nbsp; Hence the warning about the variable never being initialized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 12:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133321#M1200</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-06T12:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why the do group is processing even if the condition is not satisfied?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133322#M1201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;ok thank you and can you please also guide me how to get rid of the message. without changing the if condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 03:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133322#M1201</guid>
      <dc:creator>devarayalu</dc:creator>
      <dc:date>2013-11-07T03:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why the do group is processing even if the condition is not satisfied?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133323#M1202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; chk=open('one');&lt;/P&gt;&lt;P&gt; chk1=varnum(chk, 'LINENO');&lt;/P&gt;&lt;P&gt; if chk1 ne 0 then call execute(' data two; set one; if lineno ne 1; run;');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 04:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133323#M1202</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-11-07T04:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why the do group is processing even if the condition is not satisfied?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133324#M1203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the prompt answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 04:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Why-the-do-group-is-processing-even-if-the-condition-is-not/m-p/133324#M1203</guid>
      <dc:creator>devarayalu</dc:creator>
      <dc:date>2013-11-07T04:13:37Z</dc:date>
    </item>
  </channel>
</rss>

