<?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: how to check if keyword parameter exist/is empty in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508096#M136412</link>
    <description>&lt;P&gt;OR try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(var=);
data input; set input;
%if %length(&amp;amp;var)  %then %do; do something;%end;
%if %length(&amp;amp;var)=0 %then %do; do something;%end;
run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 28 Oct 2018 10:19:10 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-10-28T10:19:10Z</dc:date>
    <item>
      <title>how to check if keyword parameter exist/is empty</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508088#M136404</link>
      <description>&lt;P&gt;say I have the following macro:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(var=);
data input; set input;
%if &amp;amp;var. ne %then %do; do something;%end;
%if &amp;amp;var. e %then %do; do something;%end;
run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but the check "%if &amp;amp;var. e" does not work.&lt;/P&gt;&lt;P&gt;How else should I do this?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 08:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508088#M136404</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-10-28T08:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to check if keyword parameter exist/is empty</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508090#M136406</link>
      <description>It's called eq, not e.</description>
      <pubDate>Sun, 28 Oct 2018 09:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508090#M136406</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-10-28T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to check if keyword parameter exist/is empty</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508096#M136412</link>
      <description>&lt;P&gt;OR try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(var=);
data input; set input;
%if %length(&amp;amp;var)  %then %do; do something;%end;
%if %length(&amp;amp;var)=0 %then %do; do something;%end;
run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Oct 2018 10:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508096#M136412</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-28T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to check if keyword parameter exist/is empty</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508098#M136413</link>
      <description>&lt;P&gt;For a comprehensive overview and evaluation of the available&amp;nbsp;methods see the &lt;A href="http://support.sas.com/resources/papers/proceedings09/022-2009.pdf" target="_blank"&gt;SAS Global Forum 2009 paper&amp;nbsp;"Is This Macro Parameter Blank?"&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 10:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-check-if-keyword-parameter-exist-is-empty/m-p/508098#M136413</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-28T10:33:35Z</dc:date>
    </item>
  </channel>
</rss>

