<?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: convert SAS file to SPSS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233542#M42651</link>
    <description>Then try proc export. &lt;BR /&gt;To ensure formatted variables transfer properly I have a habit of including both the formatted and unformatted variable. Sometimes I also convert the formatted variable using a PUT() statement as well. It depends on the data.</description>
    <pubDate>Fri, 06 Nov 2015 20:22:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-11-06T20:22:05Z</dc:date>
    <item>
      <title>convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233538#M42648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have to convert a sas file to spss . The original sas dataset can only be opened after a proc format statement is run to account for the new formats. After that , I am able to open the sas dataset. Can this dataset then be converted to a spss file using the following program&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;get sas data='c:\sas\data\class.xpt'.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;execute.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;How can I ensure proper conversion. Please advice on the steps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233538#M42648</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-11-06T20:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233539#M42649</link>
      <description>Are you working in SPSS or SAS?&lt;BR /&gt;If you want an SPSS file, export to SPSS and use the appropriate DBMS, either SAV or SPSS.</description>
      <pubDate>Fri, 06 Nov 2015 20:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233539#M42649</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-06T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233541#M42650</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;,&amp;nbsp; I am working in sas.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233541#M42650</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-11-06T20:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233542#M42651</link>
      <description>Then try proc export. &lt;BR /&gt;To ensure formatted variables transfer properly I have a habit of including both the formatted and unformatted variable. Sometimes I also convert the formatted variable using a PUT() statement as well. It depends on the data.</description>
      <pubDate>Fri, 06 Nov 2015 20:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233542#M42651</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-06T20:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233543#M42652</link>
      <description>&lt;P&gt;The unformatetd varibale is not present for this variable in the dataset. That's the reason for my concern. I will have to create a new one representing the unformatted one and then transfer. Would that be a good step?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233543#M42652</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-11-06T20:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233548#M42653</link>
      <description>I consider it best practice myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233548#M42653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-06T20:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233550#M42654</link>
      <description>&lt;P&gt;Thanks. Then I will make sure to have it. I have one more question. For the variable 'title' with the format...I have to run the proc format statement first. Say the format name for it is 'west'. After I run the proic format then only I am able to open the sas dataset in lib=work. If not it triggers a message saying&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NOTE: Format WEST was not found or could not be loaded.&lt;BR /&gt;NOTE: There were 437 observations read from the data set WORK.ORIGINAL.&lt;BR /&gt;NOTE: The data set WORK.TEMP has 437 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run a proc contents on work.temp I see the format 'west' listed against the vairiable 'title'. However, when I look at the column attributes of the variable in the dataset, the format is listed as BESTX12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is 'bestx12.' ? Please let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233550#M42654</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-11-06T20:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: convert SAS file to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233558#M42657</link>
      <description>&lt;P&gt;Please ignore my alst question. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-SAS-file-to-SPSS/m-p/233558#M42657</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2015-11-06T20:57:34Z</dc:date>
    </item>
  </channel>
</rss>

