<?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: open xpt file in SAS studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347539#M2221</link>
    <description>&lt;P&gt;What is the file size as reported by the operating system for that file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you open the xpt file in a text editor? If so you would see some text similar to this on the&amp;nbsp;first row&amp;nbsp;if it was created by Proc Cport likey following COMPRESSED*****&lt;/P&gt;
&lt;PRE&gt;LIB CONTROL W32_VSPR¼&amp;#2;SAS  SAS9.2¼«D901SASHELP CLASS&lt;/PRE&gt;
&lt;P&gt;so you could find the SAS version and the original name of the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it doesn't look like this then you are likely to have a corrupted file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option may be to look at the xport engine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename importin xport "&amp;amp;tabin./substatxpt.xpt";

proc copy in=importin library=target;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Apr 2017 22:55:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-05T22:55:42Z</dc:date>
    <item>
      <title>open xpt file in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347529#M2220</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff"&gt;Hi, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;I am trying to open an .xpt file in SAS Studio, without much luck, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Here is the code, which I copied from an earlier SAS community string:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname target    "&amp;amp;tabin.";
filename importin "&amp;amp;tabin./substatxpt.xpt";

proc cimport infile=importin library=target;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;I receive the following error message:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE 18-208: Libref TARGET was successfully assigned as follows:&lt;/P&gt;
&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Physical Name: /home/director1/ABC/Data_170328\&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63 filename importin "/home/director1/ABC/Data_170328/substatxpt.xpt" ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;64 proc cimport infile=importin library=target;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;65 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE 17-319: PROC CIMPORT begins to create/update data set TARGET.SUBSTAT&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR 9-7: File TARGET.SUBSTAT.DATA does not exist.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR 96-319: Data set TARGET.SUBSTAT was not created/replaced due to errors.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE CIMPORT used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;user cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;memory 187.31k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;OS Memory 59208.00k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Timestamp 04/05/2017 09:53:35 PM&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Step Count 13775 Switch Count 28&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Reclaims 9&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Voluntary Context Switches 63&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;FONT color="#0000ff"&gt;My only thought is that the SAS XPT file does not contain data, or something along those lines.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;FONT color="#0000ff"&gt;Appreciate any insight you can provide, thanks, &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;FONT color="#0000ff"&gt;R&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 22:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347529#M2220</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2017-04-05T22:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: open xpt file in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347539#M2221</link>
      <description>&lt;P&gt;What is the file size as reported by the operating system for that file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you open the xpt file in a text editor? If so you would see some text similar to this on the&amp;nbsp;first row&amp;nbsp;if it was created by Proc Cport likey following COMPRESSED*****&lt;/P&gt;
&lt;PRE&gt;LIB CONTROL W32_VSPR¼&amp;#2;SAS  SAS9.2¼«D901SASHELP CLASS&lt;/PRE&gt;
&lt;P&gt;so you could find the SAS version and the original name of the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it doesn't look like this then you are likely to have a corrupted file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option may be to look at the xport engine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename importin xport "&amp;amp;tabin./substatxpt.xpt";

proc copy in=importin library=target;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 22:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347539#M2221</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-05T22:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: open xpt file in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347545#M2222</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The .xpt file is 22kb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the text I get when opening in notepad, I guess it speaks for itself !&amp;nbsp; , and file is corrupt ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;⨪佃偍䕒卓䑅⨪⨠䌪䵏剐卅䕓⩄‪⨪佃偍䕒卓䑅⨪⨠䌪䵏剐卅䕓⩄‪⨪佃偍䕒卓䑅⨪⨪⨪⨪䥌⁂佃呎佒⁌㍗弲倷佒ڼ匠十⸹밴䦃ꖼ㥄㄰問뱔厃䉕呓呁鞼䍖㈱膼䍒㜱백劇ㅌ㈵螼백厇〠†‰〠†低蒼배ㆉ閼汷ㅴ誼캼캼偓乁䌠乏剔䱏ⴠ밷㒂배ㆅ蚼〴誼뱌㒈배벎밦厦䅐⁎佃呎佒⁌&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I did try the xport engine, and that did not work too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347545#M2222</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2017-04-05T23:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: open xpt file in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347546#M2223</link>
      <description>&lt;P&gt;So I just replaced the SAS studio file&amp;nbsp;a newly downloaded &amp;nbsp;"original", and the code works...&lt;/P&gt;&lt;P&gt;Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/open-xpt-file-in-SAS-studio/m-p/347546#M2223</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2017-04-05T23:41:18Z</dc:date>
    </item>
  </channel>
</rss>

