<?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: Blank values are being filled in with the next value instead of &amp;quot;.&amp;quot; in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768280#M30809</link>
    <description>&lt;P&gt;You need to include the DSD option so that adjacent tabs are taken as meaning there is an empty value. Otherwise multiple delimiters next to each other are treated as one delimiter.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile diabetes DSD DLM="09"x truncover firstobs=2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The default behavior is designed for reading data that is using space as the delimiter. In that case users like to use multiple spaces with short values so the text in the file lines up neatly.&amp;nbsp; This makes it easier for humans to review.&amp;nbsp; Note that without the DSD option you will need to use a period to indicate missing values (use period in the text for both numeric and character missing values).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1024 242  82 54 4.5         4.769999981 
1029 215 128 34 6.300000191 4.96999979&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Sep 2021 12:51:17 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-09-17T12:51:17Z</dc:date>
    <item>
      <title>Blank values are being filled in with the next value instead of "."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768266#M30806</link>
      <description>&lt;P&gt;I am having trouble with a data set that I imported as a txt file. There are missing values represented with blanks, but sas is filling those values in with the next available value instead of ".". For example, the first line of observations is "1000 203 82 56 3.599999905 4.309999943 Buckingham 46 female 62 121 medium 118 59&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29 38 720"; as you can see, there is a missing value between 59 and 29. However, sas scooted the 29 over into that cell instead of putting ".", and instead put "." in the last column for that observation. My data step is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data diabetes;&lt;BR /&gt;infile diabetes DLM="09"x missover firstobs=2;&lt;BR /&gt;input&lt;BR /&gt;ID&lt;BR /&gt;chol&lt;BR /&gt;stab_glu&lt;BR /&gt;hdl&lt;BR /&gt;ratio&lt;BR /&gt;glyhb&lt;BR /&gt;location $&lt;BR /&gt;age&lt;BR /&gt;gender $&lt;BR /&gt;height&lt;BR /&gt;weight&lt;BR /&gt;frame $&lt;BR /&gt;BP_1s&lt;BR /&gt;BP_1d&lt;BR /&gt;BP_2s&lt;BR /&gt;BP_2d&lt;BR /&gt;waist&lt;BR /&gt;hip&lt;BR /&gt;time_ppn;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something in my code? I thought that missover would tell sas to put "." in for blanks, but it doesn't seem to be working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; help would be much appreciated!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I attached the txt file below in case maybe the issue is something with the data file itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768266#M30806</guid>
      <dc:creator>gwilli31</dc:creator>
      <dc:date>2021-09-17T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Blank values are being filled in with the next value instead of "."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768272#M30807</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data diabetes;
infile 'c:\temp\diabetes2.txt' DSD DLM="09"x truncover firstobs=2;
input
ID
chol
stab_glu
hdl
ratio
glyhb
location $
age
gender $
height
weight
frame $
BP_1s
BP_1d
BP_2s
BP_2d
waist
hip
time_ppn;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need DSD option.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768272#M30807</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-17T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Blank values are being filled in with the next value instead of "."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768275#M30808</link>
      <description>Thank you! It worked!!!!</description>
      <pubDate>Fri, 17 Sep 2021 12:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768275#M30808</guid>
      <dc:creator>gwilli31</dc:creator>
      <dc:date>2021-09-17T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Blank values are being filled in with the next value instead of "."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768280#M30809</link>
      <description>&lt;P&gt;You need to include the DSD option so that adjacent tabs are taken as meaning there is an empty value. Otherwise multiple delimiters next to each other are treated as one delimiter.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile diabetes DSD DLM="09"x truncover firstobs=2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The default behavior is designed for reading data that is using space as the delimiter. In that case users like to use multiple spaces with short values so the text in the file lines up neatly.&amp;nbsp; This makes it easier for humans to review.&amp;nbsp; Note that without the DSD option you will need to use a period to indicate missing values (use period in the text for both numeric and character missing values).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1024 242  82 54 4.5         4.769999981 
1029 215 128 34 6.300000191 4.96999979&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Blank-values-are-being-filled-in-with-the-next-value-instead-of/m-p/768280#M30809</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-17T12:51:17Z</dc:date>
    </item>
  </channel>
</rss>

