<?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: Export SAS data with user defined format and retain the format in Stata in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873942#M82704</link>
    <description>&lt;P&gt;When you say "without success", can you explain what that means?&amp;nbsp; Did you get errors in the log?&amp;nbsp; Did the data export successfully but you were unhappy with the results?&amp;nbsp; If so, what was wrong with the results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say "retain the format" in STATA, what does that mean?&amp;nbsp; SAS formats can be used like SPSS "value labels".&amp;nbsp; Assuming STATA has the same construct, is the problem that the data is being exported to STATA successfully, but the value labels are missing?&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 17:34:40 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-05-04T17:34:40Z</dc:date>
    <item>
      <title>Export SAS data with user defined format and retain the format in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873941#M82703</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to export a SAS dataset to Stata. I also have a SAS catalog which I keep all the user defined formats. The codes below are what I have tried so far without success. If anyone know how to do this, please help!&lt;/P&gt;&lt;P&gt;Thank you- Joanne&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname ftest "";&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=df_rec&lt;BR /&gt;OUTFILE="H:\late_recurrence.dta"&lt;BR /&gt;DBMS=dta REPLACE;&lt;BR /&gt;fmtlib=ftest;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873941#M82703</guid>
      <dc:creator>chouj</dc:creator>
      <dc:date>2023-05-04T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data with user defined format and retain the format in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873942#M82704</link>
      <description>&lt;P&gt;When you say "without success", can you explain what that means?&amp;nbsp; Did you get errors in the log?&amp;nbsp; Did the data export successfully but you were unhappy with the results?&amp;nbsp; If so, what was wrong with the results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say "retain the format" in STATA, what does that mean?&amp;nbsp; SAS formats can be used like SPSS "value labels".&amp;nbsp; Assuming STATA has the same construct, is the problem that the data is being exported to STATA successfully, but the value labels are missing?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873942#M82704</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-04T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data with user defined format and retain the format in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873946#M82705</link>
      <description>Hi,&lt;BR /&gt;I apologized for not being clear. I was able to run the proc export procedure and create a stata dataset without any issues. But all the format labels got lost in the Stata data. This is what I meant by without success.&lt;BR /&gt;Thank you -Joanne&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2023 17:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873946#M82705</guid>
      <dc:creator>chouj</dc:creator>
      <dc:date>2023-05-04T17:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data with user defined format and retain the format in Stata</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873948#M82706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This related thread might help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Export-SAS-dataset-to-STATA-keeping-the-formats/td-p/629116" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Export-SAS-dataset-to-STATA-keeping-the-formats/td-p/629116&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are they numeric variables, and is the length of your format names &amp;lt;= 8 ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-SAS-data-with-user-defined-format-and-retain-the-format/m-p/873948#M82706</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-04T17:54:43Z</dc:date>
    </item>
  </channel>
</rss>

