<?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: Where is working as a option but is not working as a statement. Why? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898125#M39959</link>
    <description>&lt;P&gt;Studying videos from the SAS, below is how they applied. So I came up with question of applying WHERE as a statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_2-1697029245586.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88767i4C63F05CAEA586D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_2-1697029245586.png" alt="POOJA_J_2-1697029245586.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_3-1697029265302.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88768iF9A64305D69A4018/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_3-1697029265302.png" alt="POOJA_J_3-1697029265302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 13:01:56 GMT</pubDate>
    <dc:creator>POOJA_J</dc:creator>
    <dc:date>2023-10-11T13:01:56Z</dc:date>
    <item>
      <title>Where is working as a option but is not working as a statement. Why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898114#M39955</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_0-1697027189697.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88764i8430D6B78D14193F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_0-1697027189697.png" alt="POOJA_J_0-1697027189697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm learning to code macros. Once macro is created I want to check that and so I used proc catalog. My question is why WHERE doesn't give required results as a Statement. But using it as an option gives results. I assumed WHERE should give results when used either as a Statement or Option. Plz explain the logic behind this.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898114#M39955</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-11T12:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Where is working as a option but is not working as a statement. Why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898115#M39956</link>
      <description>&lt;P&gt;Because PROC CATALOG does not support the WHERE statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What purpose would the WHERE statement even do for PROC CATALOG?&amp;nbsp; It does not read in any datasets so what could the WHERE clause be applied to?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898115#M39956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-10-11T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Where is working as a option but is not working as a statement. Why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898117#M39957</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437294"&gt;@POOJA_J&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_0-1697027189697.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88764i8430D6B78D14193F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_0-1697027189697.png" alt="POOJA_J_0-1697027189697.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm learning to code macros. Once macro is created I want to check that and so I used proc catalog. My question is why WHERE doesn't give required results as a Statement. But using it as an option gives results. I assumed WHERE should give results when used either as a Statement or Option. Plz explain the logic behind this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your question really has nothing to do with the small macro you wrote. But ... since &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;has already questioned your use of WHERE in PROC CATALOG, let me point out that in order to write macros that work, you need to first have SAS code without macros and without macro variables that works properly. If you can't write such code without macros and without macro variables, then you will never get macros to work.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898117#M39957</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-11T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where is working as a option but is not working as a statement. Why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898120#M39958</link>
      <description>&lt;P&gt;A WHERE statement in a procedure is applied to (a) dataset(s) being &lt;U&gt;read&lt;/U&gt; by the procedure. Since you do not (and can not) read a dataset with PROC CATALOG, the statement cannot be supported.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898120#M39958</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-11T12:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where is working as a option but is not working as a statement. Why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898125#M39959</link>
      <description>&lt;P&gt;Studying videos from the SAS, below is how they applied. So I came up with question of applying WHERE as a statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_2-1697029245586.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88767i4C63F05CAEA586D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_2-1697029245586.png" alt="POOJA_J_2-1697029245586.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POOJA_J_3-1697029265302.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88768iF9A64305D69A4018/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POOJA_J_3-1697029265302.png" alt="POOJA_J_3-1697029265302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-is-working-as-a-option-but-is-not-working-as-a-statement/m-p/898125#M39959</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-11T13:01:56Z</dc:date>
    </item>
  </channel>
</rss>

