<?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: Associate data.xpt and formats.xpf from Stata into SAS in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Associate-data-xpt-and-formats-xpf-from-Stata-into-SAS/m-p/270863#M7508</link>
    <description>Import formats data set first. &lt;BR /&gt;Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.&lt;BR /&gt;Point the fmtsearch option there.&lt;BR /&gt;Then import your data. Now your formats should work, given the they match.</description>
    <pubDate>Tue, 17 May 2016 02:43:54 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-05-17T02:43:54Z</dc:date>
    <item>
      <title>Associate data.xpt and formats.xpf from Stata into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Associate-data-xpt-and-formats-xpf-from-Stata-into-SAS/m-p/270852#M7507</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Hi there.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;May I please ask how can I associate the format.xpf with the SAS data. I have two files generated from Stata fdasave command i.e.&amp;nbsp;data.xpt and formats.xpf.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;In order to browse the SAS data after the first proc copy, I needed to supress the formats in the datastep.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;The&amp;nbsp;second 'proc copy' only creates a SAS dataset with variable FMNTNAME, START and LABEL.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Your help is much appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sasfile "\\Desktop\Attempt";

libname xptfile xport "\\Attempt\data.xpt";
proc copy in=xptfile out=sasfile memtype=data; run;
data temp; set sasfile2.data; format _all_; run;


libname xptfile xport "\\Attemp\formats.xpf";
proc copy in=xptfile out=sasfile; run;&lt;/CODE&gt;&lt;/PRE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 02:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Associate-data-xpt-and-formats-xpf-from-Stata-into-SAS/m-p/270852#M7507</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-05-17T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Associate data.xpt and formats.xpf from Stata into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Associate-data-xpt-and-formats-xpf-from-Stata-into-SAS/m-p/270863#M7508</link>
      <description>Import formats data set first. &lt;BR /&gt;Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.&lt;BR /&gt;Point the fmtsearch option there.&lt;BR /&gt;Then import your data. Now your formats should work, given the they match.</description>
      <pubDate>Tue, 17 May 2016 02:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Associate-data-xpt-and-formats-xpf-from-Stata-into-SAS/m-p/270863#M7508</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-17T02:43:54Z</dc:date>
    </item>
  </channel>
</rss>

