<?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 handle the missing value in the Scan function ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857869#M338966</link>
    <description>&lt;P&gt;Try adding the M modifier:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data address2;
address = 's1,s2,,s3,s4, , ,j6';
var1=scan(address,1,',','m');
var2=scan(address,2,',','m');
var3=scan(address,3,',','m');
var4=scan(address,4,',','m');
var5=scan(address,5,',','m');
var6=scan(address,6,',','m');
var7=scan(address,7,',','m');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Feb 2023 20:38:06 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-02-08T20:38:06Z</dc:date>
    <item>
      <title>How to handle the missing value in the Scan function ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857851#M338962</link>
      <description>&lt;P&gt;data address2;&lt;BR /&gt;address = 's1,s2,,s3,s4, , ,j6';&lt;BR /&gt;var1=scan(address,1,',');&lt;BR /&gt;var2=scan(address,2,',');&lt;BR /&gt;var3=scan(address,3,',');&lt;BR /&gt;var4=scan(address,4,',');&lt;BR /&gt;var5=scan(address,5,',');&lt;BR /&gt;var6=scan(address,6,',');&lt;BR /&gt;var7=scan(address,7,',');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data=address2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;output :&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.ADDRESS2" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;address&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var2&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var3&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var4&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var5&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var6&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;var7&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="l data"&gt;s1,s2,,s3,s4, , ,j6&lt;/TD&gt;
&lt;TD class="l data"&gt;s1&lt;/TD&gt;
&lt;TD class="l data"&gt;s2&lt;/TD&gt;
&lt;TD class="l data"&gt;s3&lt;/TD&gt;
&lt;TD class="l data"&gt;s4&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;j6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this program is being running. Accourding to the data input , var 3 supposed to be missing value which I really expect. Can any one help?&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 20:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857851#M338962</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2023-02-08T20:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle the missing value in the Scan function ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857853#M338963</link>
      <description>it is running on SAS9.4</description>
      <pubDate>Wed, 08 Feb 2023 20:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857853#M338963</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2023-02-08T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle the missing value in the Scan function ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857869#M338966</link>
      <description>&lt;P&gt;Try adding the M modifier:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data address2;
address = 's1,s2,,s3,s4, , ,j6';
var1=scan(address,1,',','m');
var2=scan(address,2,',','m');
var3=scan(address,3,',','m');
var4=scan(address,4,',','m');
var5=scan(address,5,',','m');
var6=scan(address,6,',','m');
var7=scan(address,7,',','m');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 20:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857869#M338966</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-02-08T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle the missing value in the Scan function ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857873#M338969</link>
      <description>Thanks so much.</description>
      <pubDate>Wed, 08 Feb 2023 20:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-the-missing-value-in-the-Scan-function/m-p/857873#M338969</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2023-02-08T20:48:08Z</dc:date>
    </item>
  </channel>
</rss>

