<?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: SAS and SPSS data exchange with SAS/ACCESS in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-and-SPSS-data-exchange-with-SAS-ACCESS/m-p/492255#M15300</link>
    <description>&lt;P&gt;When you import from SPSS, SAS creates a separate set of SAS format definitions to store any special "label" assignments from the SPSS data.&amp;nbsp; I'm not sure that's what is happening here, but it's probably a good idea to check whether any formats are created and whether they are present when you export back.&amp;nbsp; &lt;A href="https://blogs.sas.com/content/sasdummy/2013/09/05/import-spss-to-sas-improved/" target="_self"&gt;This article (about a task in SAS Enterprise Guide)&lt;/A&gt; provides a little bit of background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I see that you're using DBMS=SPSS when you import, but SAV on export.&amp;nbsp; SAV should be used in both cases, though SPSS might be just an alias for SAV in this syntax.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 12:06:12 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-09-04T12:06:12Z</dc:date>
    <item>
      <title>SAS and SPSS data exchange with SAS/ACCESS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-and-SPSS-data-exchange-with-SAS-ACCESS/m-p/492250#M15299</link>
      <description>&lt;P&gt;I am working on a project where I need to import data into SAS from SPSS and then export back to SPSS after I finish working with the data.&amp;nbsp; The problem is that when I import the data back into SPSS the numeric formatting changes to integer from the original SPSS format settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of code I used:&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT OUT= BMT.SPSS_check_fmt
			DATAFILE= "C:\bmtdata\TestSPSS.sav"
            DBMS=SPSS REPLACE;
run;


PROC EXPORT DATA= BMT.SPSS_check_fmt
            OUTFILE= "C:\bmtdata\TestSPSSout.sav"
            DBMS= SAV REPLACE;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance one variable's format was 8.2 and when it came back into SPSS it was 8.0 even though the variable was unaltered by SAS in any way.&amp;nbsp; The underlying data is still correct.&amp;nbsp; When I try to open the SPSS data exported from SAS I get this message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPSS.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22968iFD0AD8CA04C8EB4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPSS.jpg" alt="SPSS.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there a workaround for this issue short of having to re-format all the numeric data every time I import it back into SPSS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any insights you can provide on the most practical way to handle this situation would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-and-SPSS-data-exchange-with-SAS-ACCESS/m-p/492250#M15299</guid>
      <dc:creator>julicny</dc:creator>
      <dc:date>2018-09-04T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and SPSS data exchange with SAS/ACCESS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-and-SPSS-data-exchange-with-SAS-ACCESS/m-p/492255#M15300</link>
      <description>&lt;P&gt;When you import from SPSS, SAS creates a separate set of SAS format definitions to store any special "label" assignments from the SPSS data.&amp;nbsp; I'm not sure that's what is happening here, but it's probably a good idea to check whether any formats are created and whether they are present when you export back.&amp;nbsp; &lt;A href="https://blogs.sas.com/content/sasdummy/2013/09/05/import-spss-to-sas-improved/" target="_self"&gt;This article (about a task in SAS Enterprise Guide)&lt;/A&gt; provides a little bit of background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I see that you're using DBMS=SPSS when you import, but SAV on export.&amp;nbsp; SAV should be used in both cases, though SPSS might be just an alias for SAV in this syntax.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-and-SPSS-data-exchange-with-SAS-ACCESS/m-p/492255#M15300</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-09-04T12:06:12Z</dc:date>
    </item>
  </channel>
</rss>

