<?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 Creating SAS .XPT file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329145#M73593</link>
    <description>&lt;P&gt;I am working with a 3rd party vendor who is requesting data sets in a SAS .XPT file. I am a web developer using C# and I have no experience with SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a .XPT file from scratch using a text writer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 16:24:26 GMT</pubDate>
    <dc:creator>mmccarver</dc:creator>
    <dc:date>2017-02-01T16:24:26Z</dc:date>
    <item>
      <title>Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329145#M73593</link>
      <description>&lt;P&gt;I am working with a 3rd party vendor who is requesting data sets in a SAS .XPT file. I am a web developer using C# and I have no experience with SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a .XPT file from scratch using a text writer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329145#M73593</guid>
      <dc:creator>mmccarver</dc:creator>
      <dc:date>2017-02-01T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329149#M73594</link>
      <description>&lt;P&gt;I would assume that you have access to SAS in some form. Use of Proc Cport would be every so much easier.&lt;/P&gt;
&lt;P&gt;You can either export all of the data sets in a library in to a single file&lt;/P&gt;
&lt;P&gt;proc cport data=sashelp.class file='c:\folder\class.xpt';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;would create a transport file for the data set sashelp.class.&lt;/P&gt;
&lt;P&gt;You can export all of the datasets in a library also&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc cport library=libname file='c:\folder\library.xpt' memtype=data;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329149#M73594</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-01T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329152#M73596</link>
      <description>&lt;P&gt;Thank you for responding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no access to SAS. To be honest, this is the first time I've ever had to work with it. Typically, clients ask for CSV files as a method of data transferring but they are asking for .XPT files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I even create a .XPT file without SAS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329152#M73596</guid>
      <dc:creator>mmccarver</dc:creator>
      <dc:date>2017-02-01T16:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329160#M73597</link>
      <description>&lt;P&gt;SAS V5 transport file format is open source. &amp;nbsp;For instance this doc might help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/techsup/technote/ts140.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/ts140.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, XPts are old, and a real pain. &amp;nbsp;They are alos quite limited - variable label length and such like.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329160#M73597</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-01T16:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329163#M73599</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126705"&gt;@mmccarver&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for responding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no access to SAS. To be honest, this is the first time I've ever had to work with it. Typically, clients ask for CSV files as a method of data transferring but they are asking for .XPT files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could I even create a .XPT file without SAS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes you can create a&amp;nbsp;file using a language other than SAS, that can be read by SAS with the SAS XPORT engine.&amp;nbsp; I believe this link will get you headed in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/movefile/69975/HTML/default/viewer.htm#p0ld1i106e1xm7n16eefi7qgj8m9.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/movefile/69975/HTML/default/viewer.htm#p0ld1i106e1xm7n16eefi7qgj8m9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have SAS I'm not sure how you can test it,&amp;nbsp;perhaps post it here and someone can try to read it for you.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/329163#M73599</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-02-01T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330290#M74045</link>
      <description>&lt;P&gt;Thank you for your help. I think we are going to try to purchase a tool that can convert a .CSV file to a .XPT file. Could someone point me in the right direction? Learning SAS is outside the scope of what we develop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The client wants&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS Transport V6&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With file extension .XPT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to avoid the purchasing of something we don't need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330290#M74045</guid>
      <dc:creator>mmccarver</dc:creator>
      <dc:date>2017-02-06T19:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330418#M74119</link>
      <description>&lt;P&gt;I don't know of any tool to do that. &amp;nbsp;Its should be relatively straight forward to write directly out as XPT though, the file format is well described:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/movefile/69975/HTML/default/viewer.htm#p0ld1i106e1xm7n16eefi7qgj8m9.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/movefile/69975/HTML/default/viewer.htm#p0ld1i106e1xm7n16eefi7qgj8m9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Even give you some class information to get started.&lt;/P&gt;
&lt;P&gt;The one above is v8, but you can also find v6:&lt;/P&gt;
&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;TS140 in the above doc.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330418#M74119</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-07T09:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330467#M74144</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126705"&gt;@mmccarver&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your help. I think we are going to try to purchase a tool that can convert a .CSV file to a .XPT file. Could someone point me in the right direction? Learning SAS is outside the scope of what we develop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The client wants&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Transport V6&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With file extension .XPT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to avoid the purchasing of something we don't need.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this may work&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stattransfer.com/" target="_blank"&gt;http://www.stattransfer.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can download a free trial.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/330467#M74144</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-02-07T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/585998#M167222</link>
      <description>&lt;P&gt;Is V8 open-source?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 03:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/585998#M167222</guid>
      <dc:creator>wait1ess</dc:creator>
      <dc:date>2019-09-04T03:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/586002#M167223</link>
      <description>&lt;P&gt;Since this old thread has been re-animated there are a number of packages for creating SAS transport file.&lt;/P&gt;
&lt;P&gt;There is the READSTAT package that is written in C.&amp;nbsp; There are wrappers for call this in the HAVEN package for R.&lt;/P&gt;
&lt;P&gt;There is a nice sas7bdat package for R.&lt;/P&gt;
&lt;P&gt;Similarly there are packages for Python.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 04:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/586002#M167223</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-04T04:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS .XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/783540#M249857</link>
      <description>&lt;P&gt;To be honest if you do not want to lose your client find someone in academia or on FIVERR that is a SAS programmer and let them do it. SAS is a required format by the FDA and other regulatory agencies so fooling around with open-source programs of workarounds is probably a big mistake.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-SAS-XPT-file/m-p/783540#M249857</guid>
      <dc:creator>zenenceladus</dc:creator>
      <dc:date>2021-12-02T04:48:28Z</dc:date>
    </item>
  </channel>
</rss>

