<?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 Where=(b1) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157131#M8217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working through some code in an old program written by someone else, and I came across the following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Reg ... (where=(b1))...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Syslin ... (where=(b3))...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the documentation and don't see any explanation regarding "where" statements in Proc Reg or Syslin or what b1 and b3 are (they are not variables in the models).&amp;nbsp; Can anybody help me understand what "where=(b1)" or "where=(b3)" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 15:42:00 GMT</pubDate>
    <dc:creator>Jabbawonga</dc:creator>
    <dc:date>2014-05-13T15:42:00Z</dc:date>
    <item>
      <title>Where=(b1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157131#M8217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working through some code in an old program written by someone else, and I came across the following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Reg ... (where=(b1))...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Syslin ... (where=(b3))...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the documentation and don't see any explanation regarding "where" statements in Proc Reg or Syslin or what b1 and b3 are (they are not variables in the models).&amp;nbsp; Can anybody help me understand what "where=(b1)" or "where=(b3)" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157131#M8217</guid>
      <dc:creator>Jabbawonga</dc:creator>
      <dc:date>2014-05-13T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Where=(b1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157132#M8218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where statements are related to the input data set.&lt;/P&gt;&lt;P&gt;Its the equivalent of saying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where b1 ne 0 or b1 ne .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or where b3 ne 0 or b1 ne .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157132#M8218</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-13T15:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where=(b1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157133#M8219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't post a whole line of code but I will bet that the (where= (b1)) immediately followed the input dataset name. This is one of many dataset options that are universal that allow selecting data, variables and renaming variables at time of execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157133#M8219</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-13T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where=(b1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157134#M8220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some documentation on "where=(...)" data set option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ledsoptsref/64757/HTML/default/viewer.htm#p0ny9o8t8hc5zen1qn3ft9dhtsxx.htm" title="http://support.sas.com/documentation/cdl/en/ledsoptsref/64757/HTML/default/viewer.htm#p0ny9o8t8hc5zen1qn3ft9dhtsxx.htm"&gt;SAS(R) 9.4 Data Set Options: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example if b1 is numeric it should either be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) "." (missing)&lt;/P&gt;&lt;P&gt;b) "0" (zero)&lt;/P&gt;&lt;P&gt;c) Any other number (e.g. 12, -77, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) &amp;amp; (b) would be equivalent to False (observation would not be used) and (c) would be equivalent of True (observation will be used).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. the second data step uses "where=(age)" to only process a valid age value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data test1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if name=:'J' then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; age=.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data test2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set test1(where=(age));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 16:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Where-b1/m-p/157134#M8220</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-05-13T16:23:23Z</dc:date>
    </item>
  </channel>
</rss>

