<?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 Statement and Datalines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804695#M316919</link>
    <description>&lt;P&gt;I changed your subject line because your question has got nothing to do with macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As already stated, Maxim 1 is king here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1xbr9r0s9veq0n137iftzxq4g7e.htm" target="_blank" rel="noopener"&gt;WHERE Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Study it, and you will find why WHERE cannot work in a data step that reads data only from DATALINES or INFILEs.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 08:54:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-03-29T08:54:30Z</dc:date>
    <item>
      <title>WHERE Statement and Datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804674#M316906</link>
      <description>&lt;P&gt;1.How many ways to create Global macro variables what are those can anyone explain examples&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dsn;
input name $ city $;
if city='hyd';
/*where city='hyd';
datalines;
ram blr
ravi chennai
krish vja
kesav hyd
;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*HERE IF WORKS AND WHERE NOT WORKS IN DATALINES &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804674#M316906</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-03-29T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804676#M316908</link>
      <description>&lt;H3 id="toc-hId--1070782784" class="western" style="background: transparent; page-break-before: auto; page-break-after: avoid;"&gt;Maxim 1&lt;/H3&gt;
&lt;H4 id="toc-hId-475514046" class="maxim-western"&gt;Read the documentation.&lt;/H4&gt;
&lt;P class="remark-western"&gt;SAS provides extremely well done documentation for its products. Learning to read the documentation will enhance your problem-solving skills by orders of magnitude.&lt;/P&gt;
&lt;P class="remark-western"&gt;from &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 06:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804676#M316908</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-29T06:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE Statement and Datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804695#M316919</link>
      <description>&lt;P&gt;I changed your subject line because your question has got nothing to do with macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As already stated, Maxim 1 is king here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1xbr9r0s9veq0n137iftzxq4g7e.htm" target="_blank" rel="noopener"&gt;WHERE Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Study it, and you will find why WHERE cannot work in a data step that reads data only from DATALINES or INFILEs.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-Statement-and-Datalines/m-p/804695#M316919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-29T08:54:30Z</dc:date>
    </item>
  </channel>
</rss>

