<?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: Data Files Non-English Characters in SAS University Edition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/354871#M273848</link>
    <description>&lt;P&gt;Sorry I didn't post my thanks note earlier,&lt;/P&gt;&lt;P&gt;Yes, it was definately the encoding, I added in this line of text and it worked perfectly.&lt;/P&gt;&lt;P&gt;I appreciate the help from you and all the others who chimed in.&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 05:39:15 GMT</pubDate>
    <dc:creator>Pete_Murphy</dc:creator>
    <dc:date>2017-05-01T05:39:15Z</dc:date>
    <item>
      <title>Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353138#M273843</link>
      <description>&lt;P&gt;I am having some troubles reading in data files when using SAS University Edition.&lt;/P&gt;&lt;P&gt;I am teaching myself SAS using books like The Little SAS Book and its companion of Exercises and Projects (as well as using a bunch of other books).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a consistent problem with printing libraries that have non English Characters e.g.&amp;nbsp;ó, ú, &lt;SPAN&gt;ç&lt;/SPAN&gt;&amp;nbsp;or &lt;SPAN&gt;ä&lt;/SPAN&gt;&amp;nbsp;etc.&lt;/P&gt;&lt;P&gt;These characters appear in a data file that I am reading in. The initial input works fine without any errors but when I try to print out the data I get the following error:&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;ERROR: Invalid characters were present in the data.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ERROR: An error occurred while processing text data.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked at other similar postings such as the one &lt;A title="Link to similar topic" href="https://communities.sas.com/t5/SAS-Analytics-U/Non-English-Characters-in-SAS-University-Edition/td-p/265791" target="_blank"&gt;[here]&lt;/A&gt;&amp;nbsp;but can't seem to resolve the issue. It really seems the problem comes from the non-English character being present in the .txt file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now for some details:&lt;/P&gt;&lt;P&gt;I am Using:&lt;/P&gt;&lt;P&gt;SAS University Edition&lt;/P&gt;&lt;P&gt;Windows 10 version 1703&lt;/P&gt;&lt;P&gt;Firefox 52.0.2 (32-bit)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;DATA Big_Companies;
	INFILE '/folders/myfolders/TheLittleSASBook/CodePractice/Chapter02/LogData/BigCompanies.txt';
	INPUT	Ranking 1-5
			Company_Name $ 6-34
			Country $ 35-52
			Sales $ 53-59
			Profits $ 60-68
			Assets $ 69-78
			Market_Value $ 79-88
	;
RUN;

PROC PRINT DATA = big_companies;
RUN;&lt;/PRE&gt;&lt;P&gt;The Data file is attached:&lt;/P&gt;&lt;P&gt;The Log file is attached:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Does anyone have any advice on how to print out data in SAS University Edition that contanins non-English characters?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance, I appreciate the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Pete&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353138#M273843</guid>
      <dc:creator>Pete_Murphy</dc:creator>
      <dc:date>2017-04-25T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353151#M273844</link>
      <description>&lt;P&gt;Just a guess, but try to add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;encoding=wlatin1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the infile statement. It might be that you get trouble because of the UTF-8 encoding of SAS UE.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 11:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353151#M273844</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-25T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353176#M273845</link>
      <description>&lt;P&gt;That does seem strange.&lt;/P&gt;
&lt;P&gt;Is it possible that SAS is using wrong encoding when reading the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When trying to view your attached files on this site I see that the non-ascii characters make the columns not line up. &amp;nbsp;Is it possible that by using column input you have truncated a multi-byte unicode character and hence made it invalid?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try reading the file using modified list mode input instead?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Big_Companies;
  INFILE '/folders/myfolders/TheLittleSASBook/CodePractice/Chapter02/LogData/BigCompanies.txt';
  length Ranking 8 Company_Name $40 Country $20 Sales Profits Assets Market_Value $12 ;
  input ranking company_name &amp;amp; Country &amp;amp; sales -- market_value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353176#M273845</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-25T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353187#M273846</link>
      <description>&lt;P&gt;I think it is definitely the encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353187#M273846</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-25T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353189#M273847</link>
      <description>&lt;P&gt;Change another ODS destination ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Big_Companies;
	INFILE '/folders/myfolders/BigCompanies.txt';
	INPUT	Ranking 1-5
			Company_Name $ 6-34
			Country $ 35-52
			Sales $ 53-59
			Profits $ 60-68
			Assets $ 69-78
			Market_Value $ 79-88
	;
RUN;


ods _ALL_ CLOSE;
ods html file='/folders/myfolders/x.htm';
PROC PRINT DATA = big_companies;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Open x.htm by hand .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/353189#M273847</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-25T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Files Non-English Characters in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/354871#M273848</link>
      <description>&lt;P&gt;Sorry I didn't post my thanks note earlier,&lt;/P&gt;&lt;P&gt;Yes, it was definately the encoding, I added in this line of text and it worked perfectly.&lt;/P&gt;&lt;P&gt;I appreciate the help from you and all the others who chimed in.&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 05:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Files-Non-English-Characters-in-SAS-University-Edition/m-p/354871#M273848</guid>
      <dc:creator>Pete_Murphy</dc:creator>
      <dc:date>2017-05-01T05:39:15Z</dc:date>
    </item>
  </channel>
</rss>

