<?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: issue while importing the transport file (.cpt file) by PROC CIMPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310442#M61285</link>
    <description>&lt;P&gt;Please show HOW you attempted to specify encoding.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 16:32:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-11-09T16:32:50Z</dc:date>
    <item>
      <title>issue while importing the transport file (.cpt file) by PROC CIMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310436#M61284</link>
      <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is with regard to the issue while importing the transport file (.cpt file) by PROC CIMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Transport file was created in a Windows environment via PROC CPORT and it has the encoding WLATIN1, but I am trying to Import it in UNIX Environment (default encoding=”UTF-8”) using PROC CIMPORT and it is showing the error as in below screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5735i82BC3BB7920BD8CB/image-size/original?v=v2&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname x '~path';&lt;BR /&gt;filename y '~pathx';&lt;BR /&gt;&lt;BR /&gt;proc cimport library=x infile=y;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried inencoding as well encoding option as well but it did not solve the issue.could you please suggest how i could overcome this error and read the transport file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on sas 9.4&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;</description>
      <pubDate>Wed, 09 Nov 2016 16:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310436#M61284</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-09T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue while importing the transport file (.cpt file) by PROC CIMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310442#M61285</link>
      <description>&lt;P&gt;Please show HOW you attempted to specify encoding.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310442#M61285</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-09T16:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: issue while importing the transport file (.cpt file) by PROC CIMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310443#M61286</link>
      <description>&lt;P&gt;To CPORT you probably have a program like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;filename &lt;STRONG&gt;cpt &amp;nbsp;&lt;/STRONG&gt;'... path and name.cpt';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc cport data=... &amp;nbsp; &amp;nbsp;file=&lt;STRONG&gt;cpt&lt;/STRONG&gt;; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just need to define the encoding on filename statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;filename &lt;/SPAN&gt;&lt;STRONG&gt;cpt &amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;'... path and name.cpt' &amp;nbsp;&lt;STRONG&gt;encoding&lt;/STRONG&gt;='UTF-8';&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310443#M61286</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-09T16:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue while importing the transport file (.cpt file) by PROC CIMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310494#M61287</link>
      <description>&lt;P&gt;Unfortunately you need to start SAS using the wlatin1 encoding instead of the utf-8 encoding to make the PROC CIMPORT code run.&lt;/P&gt;
&lt;P&gt;You cannot change the session encoding setting once the session has started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do that depends on how you are starting SAS. &amp;nbsp;If you are running it on PC then perhaps you already have the choice to launch SAS using different encodings in the START menu. &amp;nbsp;On my PC there is a "SAS 9.4 (English)" icon and a "SAS 9.4 (Unicode)" icon in the start menu that will let me start with the those two different encodings. &amp;nbsp;Otherwise on Windows or Unix you can start SAS using a different configuration file or command line options to change the system encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using Enterprise Guide, or SAS/Studio or some other method that connects to a server to run SAS then you need to have a way to connect to different services that are configured to use the encoding you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check with your local SAS support team, or contact SAS support.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 19:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310494#M61287</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-11-09T19:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: issue while importing the transport file (.cpt file) by PROC CIMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310675#M61297</link>
      <description>Thank you Tom &lt;BR /&gt;&lt;BR /&gt;I started the sas session like below &lt;BR /&gt;&lt;BR /&gt;sas94 -encoding wlatin1&lt;BR /&gt;&lt;BR /&gt;and then in that sas session I executed the proc cimport and it resolved the issue.</description>
      <pubDate>Thu, 10 Nov 2016 14:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/issue-while-importing-the-transport-file-cpt-file-by-PROC/m-p/310675#M61297</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-10T14:38:30Z</dc:date>
    </item>
  </channel>
</rss>

