<?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: XPT: Not a SAS data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351077#M81691</link>
    <description>&lt;P&gt;Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That is correct.&amp;nbsp; Sorry if I double posted.&amp;nbsp; I now have a working solution for the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 22:48:05 GMT</pubDate>
    <dc:creator>KevinViel</dc:creator>
    <dc:date>2017-04-18T22:48:05Z</dc:date>
    <item>
      <title>XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/350931#M81647</link>
      <description>&lt;P&gt;Can anyone explain this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;558 libname sas "D:\sastemp\_TD25684_PGHSAS1_" ;&lt;/P&gt;
&lt;P&gt;NOTE: Libref SAS refers to the same physical library as WORK.&lt;/P&gt;
&lt;P&gt;NOTE: Libref SAS was successfully assigned as follows:&lt;/P&gt;
&lt;P&gt;Engine: V9&lt;/P&gt;
&lt;P&gt;Physical Name: D:\sastemp\_TD25684_PGHSAS1_&lt;/P&gt;
&lt;P&gt;559&lt;/P&gt;
&lt;P&gt;560 libname xpt xport "M:\3 - SDTM\Exports_04142017\AE.xpt" ;&lt;/P&gt;
&lt;P&gt;NOTE: Libref XPT was successfully assigned as follows:&lt;/P&gt;
&lt;P&gt;Engine: XPORT&lt;/P&gt;
&lt;P&gt;Physical Name: M:\3 - SDTM\Exports_04142017\AE.xpt&lt;/P&gt;
&lt;P&gt;561&lt;/P&gt;
&lt;P&gt;562 proc copy in = xpt out = sas memtype = data ;&lt;/P&gt;
&lt;P&gt;563 select AE ;&lt;/P&gt;
&lt;P&gt;564 run ;&lt;/P&gt;
&lt;P&gt;NOTE: Input library XPT is sequential.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: File XPT.ALL. is not a SAS data set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE COPY used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 0.00 seconds&lt;/P&gt;
&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the transport file is named AE.XPT.&amp;nbsp; The only hint that I am getting from the user is the she exported from Omnicomm and set the version to V8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/350931#M81647</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-04-18T16:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/350947#M81651</link>
      <description>&lt;P&gt;Check the file. &amp;nbsp;There are two types of transport files. The SAS V5 transport files that the XPORT libname engine can read. There are also files generated by PROC CPORT that you need to read using PROC CIMPORT. &amp;nbsp;If you look at the first line of the file you can see the difference.&lt;/P&gt;
&lt;P&gt;XPORT files will look like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+---
1         HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;CPORT files will look like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+---
1         **COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED********&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also note that if you have moved the files using FTP and FTP teated them as text files instead of binary files they can become corrupted.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 17:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/350947#M81651</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-18T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351065#M81686</link>
      <description>&lt;P&gt;HEADER RECORD*******LIBV8&amp;nbsp;&amp;nbsp; HEADER RECORD!!!!!!!000000000000000000000000000000&amp;nbsp; SAS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SASLIB&amp;nbsp; 9.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000&amp;nbsp; SAS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SASLIB&amp;nbsp; 9.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X64_S08R&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The top line is from the culprit XPT file.&amp;nbsp; The bottom is from our usual version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351065#M81686</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-04-18T22:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351066#M81687</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/kb/46/944.html" target="_blank"&gt;http://support.sas.com/kb/46/944.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XPORT engine is restricted to reading the older V5 transport files. Revisions to XPT2LOC.SAS and XPTCOMMN.SAS macros in this Download tab, and in releases after SAS 9.4ts1m3 within the autocall library, allow V5/V6 transport files created with %LOC2XPT to be converted using PROC COPY and the XPORT engine. However, if you try to read a V8/V9 transport file using PROC COPY and the XPORT engine, you will get an error in the log. The macro &lt;STRONG&gt;XPT2LOC&lt;/STRONG&gt; reads both the older V5 transport files and the new V8/V9 transport file format.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351066#M81687</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-04-18T22:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351068#M81688</link>
      <description>&lt;P&gt;Looks like they made the XPT file using the %LOC2XPT() macro instead of using the XPORT libname engine.&lt;/P&gt;
&lt;P&gt;So you need to use the %XPT2LOC() macro to convert it back into a dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%*-------------------------------------------------------------------*;
%* The xpt2loc macro is used to convert a transport file into local  *;
%* SAS data set representation. The parameters are:                  *;
%*                                                                   *;
%* libref=          indicates the libref where the members will be   *;
%*                  written. The default is WORK.                    *;
%* memlist=         indicates the list of members in the library     *;
%*                  that are to be converted. The default is that    *;
%*                  all members will be converted.                   *;
%* filespec=        gives a fileref (unquoted) or a file path        *;
%*                  (quoted) where the transport file resides        *;
%*                  written. There is no default.                    *;
%*                                                                   *;
%* This macro should be able to handle V5 transport files written by *;
%* the XPORT engine. It should also handle V8 extended transport     *;
%* files written by the companion loc2xpt macro.                     *;
%*-------------------------------------------------------------------*;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%xpt2loc(filespec="M:\3 - SDTM\Exports_04142017\AE.xpt") ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351068#M81688</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-18T22:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351069#M81689</link>
      <description>&lt;P&gt;1818&amp;nbsp; %xpt2loc&lt;BR /&gt;1819&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( libref&amp;nbsp;&amp;nbsp; = work&lt;BR /&gt;1820&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , memlist&amp;nbsp; = _all_&lt;BR /&gt;1821&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , filespec = 'M:\Data Management\3 - SDTM\Exports_04142017\ae.xpt'&lt;BR /&gt;1822&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;SNIPPED&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: UNBUFFERED is the default with RECFM=N.&lt;BR /&gt;NOTE: The infile 'M:\Data Management\\3 - SDTM\Exports_04142017\ae.xpt' is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=M:\Data Management\\3 - SDTM\Exports_04142017\ae.xpt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=N,LRECL=32767,File Size (bytes)=18400,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Modified=14Apr2017:13:29:20,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create Time=14Apr2017:13:34:02&lt;/P&gt;
&lt;P&gt;NOTE: Unexpected end of file for binary input.&lt;BR /&gt;NOTE: The data set WORK.AE has 3 observations and 41 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NOTE: Fileref SASCODE has been deassigned.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351069#M81689</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-04-18T22:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351070#M81690</link>
      <description>&lt;P&gt;Sounds like you have a corrupt file. &amp;nbsp;The problem is that auto transfer modes can get confused becuase the beginning of the file looks like normal ASCII text, but the format is BINARY and should be transferred as such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351070#M81690</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-18T22:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: XPT: Not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351077#M81691</link>
      <description>&lt;P&gt;Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That is correct.&amp;nbsp; Sorry if I double posted.&amp;nbsp; I now have a working solution for the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XPT-Not-a-SAS-data-set/m-p/351077#M81691</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-04-18T22:48:05Z</dc:date>
    </item>
  </channel>
</rss>

