<?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: How to find the encoding type of a .xpt file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/272550#M54235</link>
    <description>&lt;P&gt;X commands are UNIX commands, so according to &lt;A href="http://stackoverflow.com/questions/805418/how-to-find-encoding-of-a-file-in-unix-via-scripts" target="_self"&gt;this StackOverflow post&lt;/A&gt;,&lt;/P&gt;&lt;PRE&gt;file -bi &amp;lt;file name&amp;gt;&lt;/PRE&gt;&lt;P&gt;should do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002610945.htm" target="_self"&gt;This page&lt;/A&gt; says you can specify encoding="utf-8" when creating the set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002605216.htm" target="_self"&gt;This page&lt;/A&gt; says you can determine encoding from within SAS by right-clicking and selecting properties.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 20:15:43 GMT</pubDate>
    <dc:creator>paulkaefer</dc:creator>
    <dc:date>2016-05-23T20:15:43Z</dc:date>
    <item>
      <title>How to find the encoding type of a .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/272526#M54224</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have requirement to find the encoding type of a .xpt file, if i use libname+xport engine i am getting encoding type as"Default" but thats not the actual encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i use libname+xport engine+proc copy getting the encoding type of sas environment, means irrespective filetype, getting default sas encoding type.(i.e. UTF-8).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know, is there any way or X commands to find the encoding type.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/272526#M54224</guid>
      <dc:creator>Sandyz</dc:creator>
      <dc:date>2016-05-23T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the encoding type of a .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/272550#M54235</link>
      <description>&lt;P&gt;X commands are UNIX commands, so according to &lt;A href="http://stackoverflow.com/questions/805418/how-to-find-encoding-of-a-file-in-unix-via-scripts" target="_self"&gt;this StackOverflow post&lt;/A&gt;,&lt;/P&gt;&lt;PRE&gt;file -bi &amp;lt;file name&amp;gt;&lt;/PRE&gt;&lt;P&gt;should do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002610945.htm" target="_self"&gt;This page&lt;/A&gt; says you can specify encoding="utf-8" when creating the set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002605216.htm" target="_self"&gt;This page&lt;/A&gt; says you can determine encoding from within SAS by right-clicking and selecting properties.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 20:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/272550#M54235</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-05-23T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the encoding type of a .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/273879#M54593</link>
      <description>&lt;P&gt;Hi&amp;nbsp; paulkaefer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thaks for your reply, i tried unix command in sas session howevr it's not working. Can you tell me any other way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 09:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/273879#M54593</guid>
      <dc:creator>Sandyz</dc:creator>
      <dc:date>2016-05-30T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the encoding type of a .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/274094#M54647</link>
      <description>&lt;P&gt;The first thing to check is, are you actually running on a Linux/UNIX environment? If so, what is the log saying? It's difficult to diagnose the problem just based on you saying it's not working for you. Is there a chance it's looking in the wrong directory? Perhaps there is a problem with the command or program logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are running on Windows, you'll probably have a problem. The &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#exittemp.htm" target="_self"&gt;X statement&lt;/A&gt; will still work under Windows, but the &lt;FONT face="courier new,courier"&gt;file&lt;/FONT&gt; command is not available by default. You could install &lt;A href="http://www.gnu.org/software/coreutils/coreutils.html" target="_self"&gt;coreutils&lt;/A&gt; or &lt;A href="http://cygwin.com/" target="_self"&gt;Cygwin&lt;/A&gt; to get it on Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 13:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/274094#M54647</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-05-31T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the encoding type of a .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/697523#M213173</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please let me know if you've figured out the question about the xpt encoding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to the responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 07:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-encoding-type-of-a-xpt-file/m-p/697523#M213173</guid>
      <dc:creator>XunjieLi</dc:creator>
      <dc:date>2020-11-09T07:16:30Z</dc:date>
    </item>
  </channel>
</rss>

