<?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: Using proc cport to create .xpt file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-cport-to-create-xpt-file/m-p/424913#M13059</link>
    <description>&lt;P&gt;You are missing a select:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473425.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473425.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, I wouldn't go that route with cport.&amp;nbsp; Use a slightly different method:&lt;/P&gt;
&lt;PRE&gt;filename tmp xport "y:/pc.xpt";

proc copy in=_source out=tmp;
run;

filename tmp clear;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 14:00:40 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-01-04T14:00:40Z</dc:date>
    <item>
      <title>Using proc cport to create .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-cport-to-create-xpt-file/m-p/424903#M13057</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;The following code creates a .xpt file but the file is not populated - it has no content other than a date and time stamp. There are no errors or warnings in the log - it states that there were 1147 observations as expected. Please can anyone explain why the&amp;nbsp;data in _source are not carried across into the .xpt file?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;cport&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=_source &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Y:\F_Science\\Outputs\pc.xpt'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 13:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-cport-to-create-xpt-file/m-p/424903#M13057</guid>
      <dc:creator>Kirsty</dc:creator>
      <dc:date>2018-01-04T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc cport to create .xpt file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-cport-to-create-xpt-file/m-p/424913#M13059</link>
      <description>&lt;P&gt;You are missing a select:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473425.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473425.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, I wouldn't go that route with cport.&amp;nbsp; Use a slightly different method:&lt;/P&gt;
&lt;PRE&gt;filename tmp xport "y:/pc.xpt";

proc copy in=_source out=tmp;
run;

filename tmp clear;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 14:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-cport-to-create-xpt-file/m-p/424913#M13059</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-04T14:00:40Z</dc:date>
    </item>
  </channel>
</rss>

