<?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 find null or missing from macro variable array? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189266#M35722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are easier ways to achieve your objective but the code doesn't work because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The condition should be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;%if . in &amp;amp;max_val &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;2. The delimiter should just be a space (otherwise if you want use a comma use&amp;nbsp;&amp;nbsp; %macro try/minoperator &lt;CODE&gt;mindelimiter=','; )&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 23:49:00 GMT</pubDate>
    <dc:creator>JerryLeBreton</dc:creator>
    <dc:date>2014-09-05T23:49:00Z</dc:date>
    <item>
      <title>How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189263#M35719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set which&amp;nbsp; with column MAX that has value 1,2,4,6,8 and . (missing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display a message in log saying "missing value found". So I am approaching it like this but it is not working for me. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro try/minoperator;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct max into: max_val separated by ', '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from bin_table;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;max_val in . %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put "ERROR:Missing value found";&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend try;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 20:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189263#M35719</guid>
      <dc:creator>Anna_nag</dc:creator>
      <dc:date>2014-09-05T20:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189264#M35720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input max;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if max=. then put "ERROR:Missing value found";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 21:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189264#M35720</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-05T21:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189265#M35721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on you need and options for your log window you may get slightly different appearance using either "WARNING: " or "NOTE: " to start that message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 22:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189265#M35721</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-05T22:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189266#M35722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are easier ways to achieve your objective but the code doesn't work because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The condition should be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;%if . in &amp;amp;max_val &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;2. The delimiter should just be a space (otherwise if you want use a comma use&amp;nbsp;&amp;nbsp; %macro try/minoperator &lt;CODE&gt;mindelimiter=','; )&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 23:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189266#M35722</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2014-09-05T23:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189267#M35723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do really need the list of values stuffed into a macro variable?&lt;/P&gt;&lt;P&gt;It the intent is to just write a note to the log then a data step is probably best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; bin_table ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; missing(max) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WARNING: There are missing values of MAX in BIN_TABLE.'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;stop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 00:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189267#M35723</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-06T00:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189268#M35724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback but I want to use this logic inside macro only. &lt;/P&gt;&lt;P&gt;Jerry- I tried to replace delimiter with space but still it doesn't return anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 01:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189268#M35724</guid>
      <dc:creator>Anna_nag</dc:creator>
      <dc:date>2014-09-06T01:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189269#M35725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like others already hinted your macro usage approach doesn't appear to be optimal. But then I don't know the full story so below an %if condition syntax which should return what you're after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data bin_table;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input max;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;8&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;%macro try/minoperator;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct max into: max_val separated by ', '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from bin_table;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %if %qsysfunc(findc("&amp;amp;max_val",.)) %then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put "ERROR:Missing value found";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;%mend try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%try;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 02:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189269#M35725</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-09-06T02:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189270#M35726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you fix the %IF condition too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasSource"&gt; 43 %macro try/minoperator;&lt;/P&gt;&lt;P class="sasSource"&gt; 44&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt; 45 proc sql noprint;&lt;/P&gt;&lt;P class="sasSource"&gt; 46 select distinct max into: max_val separated by ' '&lt;/P&gt;&lt;P class="sasSource"&gt; 47 from bin_table;&lt;/P&gt;&lt;P class="sasSource"&gt; 48 quit;&lt;/P&gt;&lt;P class="sasSource"&gt; 49&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt; 50 &lt;STRONG&gt;%if . in &amp;amp;max_val&lt;/STRONG&gt; %then %do;&lt;/P&gt;&lt;P class="sasSource"&gt; 51 %put "ERROR:Missing value found";&lt;/P&gt;&lt;P class="sasSource"&gt; 52 %end;&lt;/P&gt;&lt;P class="sasSource"&gt; 53&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt; 54 %mend try;&lt;/P&gt;&lt;P class="sasSource"&gt; 55 %try;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote1_1409972023992"&gt; NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P class="sasNote"&gt;&amp;nbsp; real time 0.00 seconds&lt;/P&gt;&lt;P class="sasNote"&gt;&amp;nbsp; cpu time 0.00 seconds&lt;/P&gt;&lt;P class="sasNote"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt; "ERROR:Missing value found"&lt;/P&gt;&lt;P class="sasSource"&gt; 56&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt; 57 ;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;If you want variation within your preferred macro approach you can try this too:&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;/P&gt;&lt;P&gt;%macro try/minoperator;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count(*) into: max_val &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from bin_table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max is missing ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;max_val&amp;nbsp; %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put "ERROR:Missing value found";&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend try;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 03:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189270#M35726</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2014-09-06T03:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189271#M35727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find the INDEXW() function is most useful for testing for a specific value in a delimited list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; try(list);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%if&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(indexw(&amp;amp;list,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ERROR: Missing value found.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; try;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;4&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1.2&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2.3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 12:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189271#M35727</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-06T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find null or missing from macro variable array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189272#M35728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also you could count the missing value :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%macro try/minoperator;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql noprint;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count(*) into : n&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from bin_table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where max is missing ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%if &amp;amp;n ne 0 %then %do;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put "ERROR:Missing value found";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%mend try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 13:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-null-or-missing-from-macro-variable-array/m-p/189272#M35728</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-06T13:30:53Z</dc:date>
    </item>
  </channel>
</rss>

