<?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 Clearing junk data during proc import? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Clearing-junk-data-during-proc-import/m-p/848016#M82348</link>
    <description>&lt;P&gt;Good evening!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a proc import on an xlsx file, and noticed that in column C, there are some values that are characters instead of numbers. As this column is supposed to be solely numbers and not characters, is there any way to run something similar to a missover or dsd when performing a proc import to ignore the characters and cause the proc import to recognize column C as numeric instead of character input?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS Studio if it makes any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 01:15:24 GMT</pubDate>
    <dc:creator>GreyBlack</dc:creator>
    <dc:date>2022-12-06T01:15:24Z</dc:date>
    <item>
      <title>Clearing junk data during proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clearing-junk-data-during-proc-import/m-p/848016#M82348</link>
      <description>&lt;P&gt;Good evening!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a proc import on an xlsx file, and noticed that in column C, there are some values that are characters instead of numbers. As this column is supposed to be solely numbers and not characters, is there any way to run something similar to a missover or dsd when performing a proc import to ignore the characters and cause the proc import to recognize column C as numeric instead of character input?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS Studio if it makes any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 01:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clearing-junk-data-during-proc-import/m-p/848016#M82348</guid>
      <dc:creator>GreyBlack</dc:creator>
      <dc:date>2022-12-06T01:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing junk data during proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clearing-junk-data-during-proc-import/m-p/848019#M82349</link>
      <description>&lt;P&gt;There is no way to intervene in the IMPORT procedure process to correct junk data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have two choices:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Clean up the junk before you import&lt;/LI&gt;
&lt;LI&gt;Post-process column C to convert it back to a numeric column. Using the INPUT function will be helpful here. Here's some code you can try.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have (rename = (c = tmp_c));
  c = input(tmp_c, ?? best12.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2022 02:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clearing-junk-data-during-proc-import/m-p/848019#M82349</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-06T02:49:08Z</dc:date>
    </item>
  </channel>
</rss>

