<?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: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197949#M49460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep what you are seeing is the proof there has been utf-8 chars stored in the transportfile.&amp;nbsp;&amp;nbsp; Those&amp;nbsp; &lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;é &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;µ &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;± are not part of the 7bit ascii and must be get a mbcs representation in a utf8 session. That are those&amp;nbsp; Ã&amp;nbsp; you are seeing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;That is getting into a disruption in many ways as 1 byte ^= 1 char&amp;nbsp;&amp;nbsp; it now 1 char = 1-4 bytes.&amp;nbsp; The only way out van be using CEDA (sas7bdat) or SAS-connect (9.4 new functionality)&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67885/HTML/default/viewer.htm#n0oj2nagtyy32yn17pj01t6vytaw.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67885/HTML/default/viewer.htm#n0oj2nagtyy32yn17pj01t6vytaw.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Fourth Edition&lt;/A&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 20:36:11 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-04-16T20:36:11Z</dc:date>
    <item>
      <title>Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197944#M49455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is my first post so apologies if i do this wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am trying to do is straight forward enough, I am working in two environments, one is using SAS EG with SAS 9.4 and has utf-8 encoding, the other is regular SAS 9.1.3 using wlatin1 encoding. I need to create an .XPT file (so a transport file) from a SAS data set, in the 9.4 environment but make sure the .XPT uses the wlatin encoding. I need this so i can read it in correctly in the SAS 9.1.3 environment, and make sure the extended characters are read correctly in the SAS 9.1.3 wlatin1 environment. So this is what I have so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code in the SAS 9.4 UTF-8 environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;** My SAS Data set I want to convert to an XPT file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; adsl (encoding = &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;"wlatin1"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;set&lt;/SPAN&gt; adam.adsl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green;"&gt;** Some extended characters;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt; ex_chars $&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; trt01pn = &lt;SPAN style="color: teal;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;then&lt;/SPAN&gt; ex_chars = &lt;SPAN style="color: purple;"&gt;"é"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; trt01pn = &lt;SPAN style="color: teal;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;then&lt;/SPAN&gt; ex_chars = &lt;SPAN style="color: purple;"&gt;"µ"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; trt01pn = &lt;SPAN style="color: teal;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;then&lt;/SPAN&gt; ex_chars = &lt;SPAN style="color: purple;"&gt;"±"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;**====================================================================================;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;** Where I want to XPT file to go;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue;"&gt;libname&lt;SPAN style="color: black;"&gt; xptfile &lt;/SPAN&gt;xport&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;"&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\\server\XPT\adslwlatin1_xpt.xpt&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; encoding = &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;"wlatin1"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;** Export XPT. File;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;cport&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt; = adsl&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; f&lt;SPAN style="color: blue;"&gt;ile&lt;/SPAN&gt;=&lt;SPAN style="color: purple;"&gt;"&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\\server\XPT\adslwlatin1_xpt.xpt&lt;/A&gt;"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;Now here is my code to then convert this SAS 9.4 .XPT file into SAS 9.1.3 data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;** XPT file location;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue;"&gt;libname&lt;SPAN style="color: black;"&gt; xptfile &lt;/SPAN&gt;xport&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;"&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\\server&lt;/A&gt;&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\XPT\adslutf8_xpt.xpt&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;** SAS file location;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue;"&gt;libname&lt;SPAN style="color: black;"&gt; sasfile &lt;/SPAN&gt;&lt;SPAN style="color: purple;"&gt;"&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\\server&lt;/A&gt;&lt;A style="font-weight: inherit; color: #0068cf;" target="_blank"&gt;\XPT\SASFILE&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: green;"&gt;** Import XPT into SAS file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;cimport&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;infile&lt;/SPAN&gt; = xptfile&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;library = sasfile;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;However since my 9.4 environment uses the UTF-8 encoding it seems to save the XPT. file as a UTF-8 encoded XPT file. Which in turn causes the XPT file once import into SAS 9.1.3 using the wlatin encoding to produce the following warning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: 'SAS Monospace';"&gt;WARNING: The transport file is from an earlier SAS release, or 9.1.3 without the corresponding hotfix.&amp;nbsp; If this transport file contains non-English data, there may be problems importing national characters.&amp;nbsp; If problems do occur, the transport file will&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;Which I understand, and even though i define the XPT file location in SAS 9.4 to use the wlatin1 encoding, it still seems to save the XPT file as a UTF-8 encoded file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;So my question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;Is there anyway to create the XPT file in SAS 9.4 (which uses the UTF-8 encoding) but store the XPT file as a wlatin1 encoded file? &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;NOTE: This needs to be done with the CPORT procedure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: 'SAS Monospace';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #444444; font-size: 10pt; background-color: #ffffff; font-family: 'SAS Monospace';"&gt;Thank you in advancedf-8&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 19:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197944#M49455</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-04-16T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197945#M49456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to use a FILENAME statement with PROC CPORT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename xptfile &lt;SPAN style="color: purple;"&gt;"&lt;A href="https://communities.sas.com/" style="color: #0068cf; font-weight: inherit;" target="_blank"&gt;\\server&lt;/A&gt;&lt;A style="color: #0068cf; font-weight: inherit;" target="_blank"&gt;\XPT\adslutf8_xpt.xpt&lt;/A&gt;" encoding = "wlatin1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.33px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;cport&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.33px; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; = adsl&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.33px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; f&lt;SPAN style="color: blue;"&gt;ile&lt;/SPAN&gt;=xptfile;&lt;/P&gt;&lt;P style="color: #444444; font-family: 'Courier New'; font-size: 13.33px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 19:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197945#M49456</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-04-16T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197946#M49457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1p1s4nhi9r3g5n1wbtm1joe2sc8.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1p1s4nhi9r3g5n1wbtm1joe2sc8.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt; it is documented that behavior of cport/cimport.&amp;nbsp;&amp;nbsp; Not being compatible in encodings. Even an import of latin1 into utf8 is failing.&lt;/P&gt;&lt;P&gt;Another is going form a newer to older release (regression) is not possible &lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1p4ukymj25l9nn1y1wip83yjhcx.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1p4ukymj25l9nn1y1wip83yjhcx.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt;&amp;nbsp;&amp;nbsp; The weirdest one was seeing it checking that including the fix-level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 19:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197946#M49457</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-16T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197947#M49458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the info, after having a read it looks like the encoding of the transport file is basically decided by the encoding setting of SAS session? In my case in SAS 9.4 uses the encoding utf-8, therefore so will my transport file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197947#M49458</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-04-16T20:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197948#M49459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;No still produced the warning and the same issue with the extended characters. Since the transport file uses the encoding UTF-8 the extended characters in the data set in SAS 9.4 data set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: purple;"&gt;é&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: purple;"&gt;µ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: purple;"&gt;±&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Transcode to double byte characters in the SAS 9.1.3 wlatin1 environment, and look like this in the data set&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt; text-align: center; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #000000; text-align: center; background-color: #f8f8f8;"&gt;Ã&lt;/SPAN&gt;©&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: purple;"&gt;&lt;SPAN style="color: #000000; text-align: center; background-color: #ffffff;"&gt;Â&lt;/SPAN&gt;µ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Courier New'; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: purple;"&gt;&lt;SPAN style="color: #000000; text-align: center; background-color: #f8f8f8;"&gt;Ã&lt;/SPAN&gt;±&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197948#M49459</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-04-16T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197949#M49460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep what you are seeing is the proof there has been utf-8 chars stored in the transportfile.&amp;nbsp;&amp;nbsp; Those&amp;nbsp; &lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;é &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;µ &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;± are not part of the 7bit ascii and must be get a mbcs representation in a utf8 session. That are those&amp;nbsp; Ã&amp;nbsp; you are seeing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: arial, helvetica, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;That is getting into a disruption in many ways as 1 byte ^= 1 char&amp;nbsp;&amp;nbsp; it now 1 char = 1-4 bytes.&amp;nbsp; The only way out van be using CEDA (sas7bdat) or SAS-connect (9.4 new functionality)&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67885/HTML/default/viewer.htm#n0oj2nagtyy32yn17pj01t6vytaw.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67885/HTML/default/viewer.htm#n0oj2nagtyy32yn17pj01t6vytaw.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Fourth Edition&lt;/A&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197949#M49460</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-16T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197950#M49461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks again for your information. Yeah i understand the multi byte character sets (MBCS) issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAS CONNECT method you mentioned, does this still create XPT files? The main issue I need to send UTF-8 encoded XPT files to someone with a wlatin1 encoded environment, I can only seem to find that XPT files encoding is determine by my SAS session encoding option. Is there a way to change the SAS session encoding?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197950#M49461</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-04-16T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a wlatin1 encoding XPT file in a UTF-8 encoding environment (CPORT)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197951#M49462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SAS connect uses his own intermediate files. &lt;A href="http://support.sas.com/documentation/cdl/en/movefile/67439/HTML/default/viewer.htm#p0xse3gaon14pun1trry9amt5339.htm" title="http://support.sas.com/documentation/cdl/en/movefile/67439/HTML/default/viewer.htm#p0xse3gaon14pun1trry9amt5339.htm"&gt;Moving and Accessing SAS(R) 9.4 Files, Second Edition&lt;/A&gt;&amp;nbsp; In the CEDA link also Socket mode (SAS/connect) is mentioned. The mentioned goal with CEDA is encoding issues. &lt;BR /&gt;The engine can be kept as a 9, the directory limitation is telling Windows and/or Unix. The exception is classic bound mainframe libraries, not your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-wlatin1-encoding-XPT-file-in-a-UTF-8-encoding/m-p/197951#M49462</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-16T20:59:39Z</dc:date>
    </item>
  </channel>
</rss>

