<?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: StatTransfer SAS to .dbf in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186715#M47434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you converting to a file format that was abandoned over 20 years ago?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 00:45:27 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-02-26T00:45:27Z</dc:date>
    <item>
      <title>StatTransfer SAS to .dbf</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186711#M47430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to convert a SAS dataset (9.4) to a .dbf file.&amp;nbsp; I want to keep the lengths I specified in SAS.&amp;nbsp; I can do this using the StatTransfer product, thru the interface.&amp;nbsp; HOWEVER, we would like to directly call StatTransfer from SAS and run it there.&amp;nbsp; I have managed to do this with the following call in SAS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%SYSEXEC(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"C:\Program Files\StatTransfer12-64\st.exe"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"U:\Jackie\sasdata\s001_combine001.sas7bdat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"U:\Jackie\sasdata\testdata.dbf"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; /Y );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;This does NOT keep my lengths.&amp;nbsp; I tried contacting StatTransfer and after much arguing and explaining they told me to try using a SET command and copy.&amp;nbsp; I tried the following from a DOS prompt after executing the st.exe command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;SET read-sas-fmts y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;COPY &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"U:\Jackie\sasdata\s001_combine001.sas7bdat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"U:\Jackie\sasdata\testdata.dbf"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;Still no luck keeping the formats.&amp;nbsp; I thought I would throw it out here to see if anyone has any suggestions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186711#M47430</guid>
      <dc:creator>jtb2o2</dc:creator>
      <dc:date>2014-02-25T19:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: StatTransfer SAS to .dbf</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186712#M47431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that you from the SAS point of view can affect the outcome from a 3rd party product like this.&lt;/P&gt;&lt;P&gt;You are probably best off contacting support/forums for StatTransfer instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 20:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186712#M47431</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-25T20:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: StatTransfer SAS to .dbf</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186713#M47432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say in the start of your question " I want to keep the lengths I specified in SAS" but later say "&lt;SPAN style="font-family: Courier New; color: #800080; font-size: 10pt;"&gt;Still no luck keeping the formats". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #800080;"&gt;Formats are not lengths nor vice versa. Which did you as the tech support length or formatted value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #800080;"&gt;A possible work-around would be to create the text versions of the variables using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #800080;"&gt;TextVarX = Put(VarX, format_for_varX.); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #800080;"&gt;statements and exporting that data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186713#M47432</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-02-25T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: StatTransfer SAS to .dbf</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186714#M47433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, you are correct.&amp;nbsp; Most important is that I keep the length of the fields.&amp;nbsp; So, if the field length is set to 50, but the longest value within it is 32, I still need the field to be set up as a length of 50.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 23:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186714#M47433</guid>
      <dc:creator>jtb2o2</dc:creator>
      <dc:date>2014-02-25T23:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: StatTransfer SAS to .dbf</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186715#M47434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you converting to a file format that was abandoned over 20 years ago?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 00:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/StatTransfer-SAS-to-dbf/m-p/186715#M47434</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-02-26T00:45:27Z</dc:date>
    </item>
  </channel>
</rss>

