<?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 import file -import wizard in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934233#M367381</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I wan to import CSV Excel file.&lt;/P&gt;
&lt;P&gt;The file is saved as type cv comma delimited.&lt;/P&gt;
&lt;P&gt;I am using import wizard and receive an error.&lt;/P&gt;
&lt;P&gt;What should I do in order to solve it and import the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1719825686339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98038iF31DE3CB996B8C69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1719825686339.png" alt="Ronein_0-1719825686339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 09:22:11 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-07-01T09:22:11Z</dc:date>
    <item>
      <title>import file -import wizard</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934233#M367381</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I wan to import CSV Excel file.&lt;/P&gt;
&lt;P&gt;The file is saved as type cv comma delimited.&lt;/P&gt;
&lt;P&gt;I am using import wizard and receive an error.&lt;/P&gt;
&lt;P&gt;What should I do in order to solve it and import the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1719825686339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98038iF31DE3CB996B8C69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1719825686339.png" alt="Ronein_0-1719825686339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934233#M367381</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-07-01T09:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: import file -import wizard</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934234#M367382</link>
      <description>&lt;P&gt;Probaly make the eecoding of your csv file and SAS session match.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934234#M367382</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2024-07-01T09:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: import file -import wizard</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934248#M367385</link>
      <description>&lt;P&gt;Use the Copy Files task to upload the file, then write the DATA step yourself with ENCODING=UTF8 in the INFILE statement.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 10:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934248#M367385</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-01T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: import file -import wizard</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934251#M367388</link>
      <description>&lt;P&gt;The message means that the file is using UTF-8 characters and your SAS session is running with a single byte encoding that does not have any way to represent some of the UTF-8 characters that are in the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run SAS using UTF-8 encoding instead then the import Wizard should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise upload the file to the machine where SAS is actually running and just read it yourself.&amp;nbsp; If you still want to use a single byte encoding the read the file using ENCODING='ANY' option in the INFILE statement.&amp;nbsp; You can then use functions like KCVT, HTMLENCODE() and TRANWRD to convert the UTF-8 characters that are not included in your single byte encoding into multiple character strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example here is an example of how to convert UTF-8 characters in a variable that are not valid in LATIN1 into multiple character strings that HTML will recognize as those same characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*----------------------------------------------------------------------------;
* Convert any extended or control characters to HTML strings ;
*----------------------------------------------------------------------------;
  array _character_ _character_;
  do over _character_;
    do until(_n_=0);
      _n_=kverify(_character_,collate(0,127)||kcvt(collate(128,255),'latin1','utf-8'));
      if _n_ then _character_=tranwrd(_character_,ksubstr(_character_,_n_,1)
                  ,htmlencode(ksubstr(_character_,_n_,1),'7bit'))
      ;
    end;
  end;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2024 12:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-file-import-wizard/m-p/934251#M367388</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-01T12:19:05Z</dc:date>
    </item>
  </channel>
</rss>

