<?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 Convert CSV to XPT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516943#M73293</link>
    <description>&lt;P&gt;I was able to import my CSV file into SAS (under lib WORK.nameoffile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am having issues with created a sas transport file (.xpt).&amp;nbsp; I have SAS 9.4.&amp;nbsp; I tried creating with the wizard, and though I can import by in with the wizard, the file is unable to be imported into JMP of SAS viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also used the proc copy code below, but am unable to get it to work.&amp;nbsp;&lt;/P&gt;&lt;PRE class="xis-code"&gt;libname source 'Work.ImportedFile';
libname xportout xport 'C:\ADA\Filename.xpt';
proc copy in=source out=xportout memtype=data; 
run;&lt;/PRE&gt;&lt;P&gt;I've gotten the following errors - source could not be assigned because libref does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 05:30:42 GMT</pubDate>
    <dc:creator>cjoshi</dc:creator>
    <dc:date>2018-11-29T05:30:42Z</dc:date>
    <item>
      <title>Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516943#M73293</link>
      <description>&lt;P&gt;I was able to import my CSV file into SAS (under lib WORK.nameoffile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am having issues with created a sas transport file (.xpt).&amp;nbsp; I have SAS 9.4.&amp;nbsp; I tried creating with the wizard, and though I can import by in with the wizard, the file is unable to be imported into JMP of SAS viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also used the proc copy code below, but am unable to get it to work.&amp;nbsp;&lt;/P&gt;&lt;PRE class="xis-code"&gt;libname source 'Work.ImportedFile';
libname xportout xport 'C:\ADA\Filename.xpt';
proc copy in=source out=xportout memtype=data; 
run;&lt;/PRE&gt;&lt;P&gt;I've gotten the following errors - source could not be assigned because libref does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 05:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516943#M73293</guid>
      <dc:creator>cjoshi</dc:creator>
      <dc:date>2018-11-29T05:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516954#M73294</link>
      <description>&lt;P&gt;Your first libname statement is wrong ... if you want to access datasets in WORK you just write work.DatasetName.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have a look at &lt;A href="https://communities.sas.com/t5/SAS-Programming/Issue-converting-Length-greater-the-230-in-XPT-c/m-p/515491/highlight/true#M139087" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Issue-converting-Length-greater-the-230-in-XPT-c/m-p/515491/highlight/true#M139087&lt;/A&gt;, especially the comment posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 08:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516954#M73294</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-29T08:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516960#M73295</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname source 'Work.ImportedFile';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the second argument of a libname statement (if no engine designator is used) has to be a physical path name; using a two-level (library.dataset) dataset name can't work.&lt;/P&gt;
&lt;P&gt;To export a single dataset, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xportout xport 'C:\ADA\Filename.xpt';
data xport.nameoffile;
set work.nameoffile;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But, given the limits of XPT, I'd rather do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cport
  data=work.nameoffile
  file='C:\ADA\Filename.cpt'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 08:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516960#M73295</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-29T08:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516972#M73296</link>
      <description>&lt;P&gt;Really, the software JMP (or SAS Viewer - I think these are two different applications) only accepts XPT files?&amp;nbsp; If so delete it from your system.&amp;nbsp; XPT is a dreadful old file format.&amp;nbsp; I really do think you should be able to import CSV, or plain dataset into most software nowadays.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 09:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516972#M73296</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-29T09:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516985#M73298</link>
      <description>&lt;P&gt;And if you simply want to import data into a non-SAS application, use csv or any other textual format (fixed columns, tab-separated, etc) for that. No need to make that extra detour through the Universal Viewer (which, in fact, does not support the CPORT format. Dreadful).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 10:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/516985#M73298</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-29T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/517090#M73306</link>
      <description>&lt;P&gt;I have no choice but to convert to .xpt as that is what is required. For some reason they have said not to use cport.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/517090#M73306</guid>
      <dc:creator>cjoshi</dc:creator>
      <dc:date>2018-11-29T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV to XPT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/517092#M73307</link>
      <description>Sadly I need to convert to .xpt. I have heard from many people that they prefer not to work with it, but there are instances where it's still requested.</description>
      <pubDate>Thu, 29 Nov 2018 15:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-CSV-to-XPT/m-p/517092#M73307</guid>
      <dc:creator>cjoshi</dc:creator>
      <dc:date>2018-11-29T15:41:29Z</dc:date>
    </item>
  </channel>
</rss>

