<?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: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683147#M206889</link>
    <description>Thank you so much, got it.</description>
    <pubDate>Fri, 11 Sep 2020 03:12:07 GMT</pubDate>
    <dc:creator>Zoe_Steven</dc:creator>
    <dc:date>2020-09-11T03:12:07Z</dc:date>
    <item>
      <title>Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682103#M206455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm converting SAS datasets to SAS xport(.xpt) files by using PROC COPY. Chinese characters in&amp;nbsp;SAS datasets are displayed well in SAS 9.4 and SAS universal viewer, but after converted in .xpt file, they become messy code in SAS universal viewer and can't be opened in SAS 9.4.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Messy code in XPT file.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49070iF46A90626F09317F/image-size/small?v=v2&amp;amp;px=200" role="button" title="Messy code in XPT file.png" alt="Messy code in XPT file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a solution to make the&amp;nbsp;Chinese characters show well in .xpt file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any tips or suggestions are very much appreciated!&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance.&lt;BR /&gt;&lt;BR /&gt;Zoe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 03:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682103#M206455</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-08T03:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682110#M206458</link>
      <description>&lt;P&gt;I suspect you will need to use PROC CPORT / CIMPORT to support the usage of DBCS character sets like Chinese.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=nlsrefwhatsnew94.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;NLS manual&lt;/A&gt;&amp;nbsp;should help you.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 04:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682110#M206458</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-08T04:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682476#M206579</link>
      <description>&lt;P&gt;Thank you for your suggestion. I tried to use&amp;nbsp;&lt;SPAN&gt;PROC CPORT, but it didn't work. And, using&amp;nbsp;PROC CPORT, the .xpt file can't even be opened by SAS universal viewer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 03:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682476#M206579</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-09T03:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682477#M206580</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp;- I suggest you open a track with SAS Tech Support if you haven't done so already. They are in the best position to help. This will likely require investigation and tweaking of your NLS settings and running a bunch of tests. I wouldn't be surprised if the Universal Viewer simply doesn't support DBCS.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 03:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682477#M206580</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-09T03:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682484#M206584</link>
      <description>&lt;P&gt;We'd need to see your code to comment further.&lt;/P&gt;
&lt;P&gt;Have read this paper&amp;nbsp;&lt;A href="https://www.pharmasug.org/proceedings/2018/BB/PharmaSUG-2018-BB14.pdf" target="_self"&gt;Tips and Fixes for Cross-Environment Batch Transfer of SAS® Data&lt;/A&gt;&amp;nbsp;and the links in it?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 04:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682484#M206584</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-09-09T04:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682882#M206745</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;, thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see below for the code I used. I guess this is caused by incompatibility between SAS universal viewer and Chinese words in xpt files. Because when I use SAS to open the xpt file with messy codes, the SAS will run PROC COPY to convert xpt file back to SAS dataset whose chinese words look fine. BTW, there is no problem when SAS datasets with chinese words are opened by&amp;nbsp;SAS universal viewer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname _sas_ "&amp;amp;saspath";
libname xptout xport "&amp;amp;xptpath.\adsl.xpt";

data adsl;
     set _sas_.adsl;
run;

proc copy in=work out=xptout memtype=data;
    select adsl;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682882#M206745</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-10T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682883#M206746</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;, thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is caused by incompatibility between SAS universal viewer and &lt;SPAN&gt;DBCS&amp;nbsp;&lt;/SPAN&gt;in xpt files. Because when I use SAS to open the xpt file with messy codes, the SAS will run PROC COPY to convert xpt file back to SAS dataset whose chinese words look fine. BTW, there is no problem when SAS datasets with chinese words are opened by&amp;nbsp;SAS universal viewer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I ask a silly question? How to&amp;nbsp;&lt;SPAN&gt;open a track with SAS Tech Support?&amp;nbsp;☺&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682883#M206746</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-10T10:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682889#M206749</link>
      <description>Send an email to SUPPORT at SAS dot COM.&lt;BR /&gt;Add the output from proc setinit so they have a copy of the site's license. &lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/682889#M206749</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-09-10T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683064#M206827</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp;- Here is the &lt;A href="https://support.sas.com/en/technical-support/submit-a-support-request.html" target="_blank" rel="noopener"&gt;link&lt;/A&gt; to open a Tech Support track&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683064#M206827</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-10T20:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683147#M206889</link>
      <description>Thank you so much, got it.</description>
      <pubDate>Fri, 11 Sep 2020 03:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683147#M206889</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-11T03:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683148#M206890</link>
      <description>Okay, thank you. I've contacted SAS SUPPORT</description>
      <pubDate>Fri, 11 Sep 2020 03:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/683148#M206890</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-11T03:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/685309#M207832</link>
      <description>&lt;P&gt;This is the answer that I got from SAS support tracking:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SAS Universal Viewer supports XPT format with English data. However, data that includes Asian characters is not displayed correctly. There is no workaround for this issue.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 06:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/685309#M207832</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-21T06:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/685335#M207844</link>
      <description>&lt;P&gt;Thank you for the update,&lt;/P&gt;
&lt;P&gt;If this is linked to this &lt;A href="https://support.sas.com/kb/40/419.html" target="_self"&gt;UNote&lt;/A&gt;, the issue is many years old, and "&lt;SPAN&gt;A fix for this issue is planned for a future software release."&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":skull:"&gt;💀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could ask them when it is planned for.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 08:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/685335#M207844</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-09-21T08:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/686259#M208204</link>
      <description>Haha, got it, thank you!</description>
      <pubDate>Thu, 24 Sep 2020 02:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/686259#M208204</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-09-24T02:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sas dataset to .xpt file using PROC COPY: Chinese character turns to messy code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/686266#M208205</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp; - AFAIK, the Universal Viewer is regarded as legacy software (along with quite a lot of older SAS products) so I wouldn't be holding my breath regarding any fixes or updates. SAS has advanced a lot in NLS but legacy products stay as they are often due to lack of demand.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 03:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-sas-dataset-to-xpt-file-using-PROC-COPY-Chinese/m-p/686266#M208205</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-24T03:03:50Z</dc:date>
    </item>
  </channel>
</rss>

