<?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: How to find Version of the XPT file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935225#M367720</link>
    <description>&lt;P&gt;The only version information I am aware of that might be in an XPT file would be the version of SAS that created the file. Is that what you are looking for?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 20:00:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-07-09T20:00:59Z</dc:date>
    <item>
      <title>How to find Version of the XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935214#M367715</link>
      <description>&lt;P&gt;I have a sas.xpt file , how to find the version of the xpt file. i tried proc contents but not much useful, is there any way we can find more information. Thanks for the help&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935214#M367715</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-07-09T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Version of the XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935225#M367720</link>
      <description>&lt;P&gt;The only version information I am aware of that might be in an XPT file would be the version of SAS that created the file. Is that what you are looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935225#M367720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-09T20:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Version of the XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935251#M367729</link>
      <description>&lt;P&gt;I remembered&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;have already answered the question before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1720578425935.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98267i0D6ACFF9A10B8897/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1720578425935.png" alt="Ksharp_0-1720578425935.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 02:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935251#M367729</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-10T02:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Version of the XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935312#M367737</link>
      <description>&lt;P&gt;If you have a file with .xpt as the file extension you still need to know what type of file it is.&amp;nbsp; Whether is was created by PROC CPORT or is was created by the XPORT libref engine. Or perhaps the new %LOC2XPT() SAS supplied autocall macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a macro you can use that will read the first few bytes of the file and tell you want type of file it is.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/xpttype.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/xpttype.sas&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*----------------------------------------------------------------------------
Check file to see what type of transport file it is.

Returns
   CPORT for PROC CPORT/CIMPORT file
   XPORT for V5 export file
   XPORT_V9 for V8/9 export file
   SAS7BDAT for SAS dataset
   UNKNOWN for any other file

Examples:
  %put %xpttype('~/xport.xpt');
  %put %xpttype('~/subj.xpt');
  %put %xpttype('~/r_lrevw.xpt');
  %put %xpttype('~/test1.sas7bdat');

----------------------------------------------------------------------------*/&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2024 13:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935312#M367737</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-10T13:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Version of the XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935382#M367767</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 18:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Version-of-the-XPT-file/m-p/935382#M367767</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-07-10T18:09:46Z</dc:date>
    </item>
  </channel>
</rss>

