<?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 Lost value while importing with datastep and columns length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778937#M248022</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lost_value.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65457i2B0164A4C17A8776/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lost_value.png" alt="lost_value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN&gt;Hello, in screen shot you can see that a value under "sex" column is missing, I have no idea what happened here, only I know is that "10240" is causing it. How to manage with that? I would like to get "10240" value under "type" column, and value "1" under "sex" column, the rest of rows should not change.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Nov 2021 15:26:23 GMT</pubDate>
    <dc:creator>moteku</dc:creator>
    <dc:date>2021-11-06T15:26:23Z</dc:date>
    <item>
      <title>Lost value while importing with datastep and columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778937#M248022</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lost_value.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65457i2B0164A4C17A8776/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lost_value.png" alt="lost_value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN&gt;Hello, in screen shot you can see that a value under "sex" column is missing, I have no idea what happened here, only I know is that "10240" is causing it. How to manage with that? I would like to get "10240" value under "type" column, and value "1" under "sex" column, the rest of rows should not change.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 15:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778937#M248022</guid>
      <dc:creator>moteku</dc:creator>
      <dc:date>2021-11-06T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lost value while importing with datastep and columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778938#M248023</link>
      <description>Try the following instead of the current input statement.&lt;BR /&gt;&lt;BR /&gt;input type sex weight height;&lt;BR /&gt;&lt;BR /&gt;You have specified 1-4 for type, but the next sex fails to read because the value is 5 digits.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Nov 2021 15:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778938#M248023</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-11-06T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lost value while importing with datastep and columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778940#M248024</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 189px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65458i24A8B739B558647D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There is nothing in column 6 on the first line so SEX is read as missing.&lt;/P&gt;
&lt;P&gt;You can fix the line by removing the space in column 5 and then SEX and the following values will be read right.&amp;nbsp; But you would need to read TYPE from column one thru five instead of one thru four.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your data is separated by spaces just use list mode input instead of column mode.&lt;/P&gt;
&lt;P&gt;If you do have any missing values on a line then use a period to represent them so the list mode sees at least something to read for that field in the line and does get out of sync.&amp;nbsp; Use a period for either numeric or character variables. The normal informat for character variables will translate a single period into blank (missing) value.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 16:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lost-value-while-importing-with-datastep-and-columns-length/m-p/778940#M248024</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-06T16:00:06Z</dc:date>
    </item>
  </channel>
</rss>

