<?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: Reading A CPORT SAS Transport File into R in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674734#M203206</link>
    <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13615" target="_blank"&gt;MMMMIIIIKKKKEEEE&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the HAVEN package in R: &lt;A href="https://cran.r-project.org/web/packages/haven/haven.pdf" target="_self"&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;Import and Export 'SPSS', 'Stata' and 'SAS' Files&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;, (&lt;/SPAN&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;see page 8).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;Hope this helps.&lt;/SPAN&gt;&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>Wed, 05 Aug 2020 14:32:25 GMT</pubDate>
    <dc:creator>LeonidBatkhan</dc:creator>
    <dc:date>2020-08-05T14:32:25Z</dc:date>
    <item>
      <title>Reading A CPORT SAS Transport File into R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674711#M203193</link>
      <description>&lt;P&gt;SAS Programming Professionals,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of our projects makes SAS data sets available to users as SAS transport files created by CPORT.&amp;nbsp; Most of our users have SAS (of course) and use PROC CIMPORT to un-transport the files into SAS data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few of our users only have R. They are having issues importing a CPORT-created SAS data set into R.&amp;nbsp; So, my question is: &lt;EM&gt;Can anybody offer a solution for how an R user can import a CPORT-created SAS data set into R?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: We are aware that transport data sets created by the venerable, ancient PROC XCOPY can be imported to R. But, for data integrity issues, we do not use XCOPY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, in advance, for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Michael&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 13:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674711#M203193</guid>
      <dc:creator>MMMIIIIKKKKEEEE</dc:creator>
      <dc:date>2020-08-05T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading A CPORT SAS Transport File into R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674734#M203206</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13615" target="_blank"&gt;MMMMIIIIKKKKEEEE&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the HAVEN package in R: &lt;A href="https://cran.r-project.org/web/packages/haven/haven.pdf" target="_self"&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;Import and Export 'SPSS', 'Stata' and 'SAS' Files&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;, (&lt;/SPAN&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;see page 8).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 208.455px; top: 421.896px; font-size: 16.6043px; font-family: sans-serif; transform: scaleX(0.901585);"&gt;Hope this helps.&lt;/SPAN&gt;&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>Wed, 05 Aug 2020 14:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674734#M203206</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-08-05T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading A CPORT SAS Transport File into R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674740#M203209</link>
      <description>&lt;P&gt;Leonid,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, this is indeed helpful!&lt;/P&gt;
&lt;P&gt;That web page will help us in the future with deliveries of SAS data sets (.sas7bdat) files for R users. I bookmarked it for the proverbial rainy day.&lt;/P&gt;
&lt;P&gt;Because we have already "published" CPORT transport files, we are still seeking a way to read them into R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, as you know, I am a big fan of your Blog posts (&lt;A href="https://blogs.sas.com/content/author/leonidbatkhan/)" target="_blank"&gt;https://blogs.sas.com/content/author/leonidbatkhan/)&lt;/A&gt;. They are always insightful reading!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Michael&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674740#M203209</guid>
      <dc:creator>MMMIIIIKKKKEEEE</dc:creator>
      <dc:date>2020-08-05T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading A CPORT SAS Transport File into R</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674746#M203211</link>
      <description>&lt;P&gt;Thank you &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13615" target="_blank" rel="noopener"&gt;MMMMIIIIKKKKEEEE&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say "Most of our users have SAS (of course) and use PROC CIMPORT to un-transport the files into SAS data sets."&lt;/P&gt;
&lt;P&gt;I think that is the way to do it: un-transport your CPORT files into SAS data sets, then read them in R using the &lt;STRONG&gt;haven&lt;/STRONG&gt; package.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless anything changed since then, "&lt;SPAN style="left: 90px; top: 1023.59px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.02633);"&gt;R can read SAS &lt;/SPAN&gt;&lt;SPAN style="left: 202.033px; top: 1023.59px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.02848);"&gt;Transport files &lt;/SPAN&gt;&lt;SPAN style="left: 301.033px; top: 1023.59px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.02733);"&gt;created with the EXPORT engine &lt;/SPAN&gt;&lt;SPAN style="left: 526.283px; top: 1023.59px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.02796);"&gt;(.xpt extensions), &lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN style="left: 644.517px; top: 1023.59px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.03225);"&gt;but not Transport files created with the &lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="left: 90px; top: 1043.39px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.0115);"&gt;&lt;FONT color="#FF0000"&gt;CPORT procedure&lt;/FONT&gt;" - see&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug12/bb/bb10.pdf" target="_self"&gt;SAS® and R Working Together&lt;/A&gt;&lt;FONT size="3"&gt;.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-A-CPORT-SAS-Transport-File-into-R/m-p/674746#M203211</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-08-05T15:19:55Z</dc:date>
    </item>
  </channel>
</rss>

