<?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: How to import SPSS data files into SAS and retain formats in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/566857#M75087</link>
    <description>&lt;P&gt;Perhaps you've already read the article &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-import-SPSS-data-files-into-SAS/ta-p/238581" target="_self"&gt;here on the community about importing SPSS files into SAS&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the SPSS "formats" defined as true SPSS labels in the source data?&amp;nbsp; I think that's the mapping that SAS is looking for and that it will bring over for you.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 13:20:54 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2019-06-18T13:20:54Z</dc:date>
    <item>
      <title>How to import SPSS data files into SAS and retain formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/566806#M75086</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am new to importing files from different programs into SAS and seem to be having a problem with retaining formats. I have a number of SAV files that I would like to import into SAS and each have formats that have been created in SPSS. I would like to import these files and retain the formats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my reading it appears you can import a SAV file which will produce a&amp;nbsp;dataset and format table (if instructed). However when I run the code I only receive the imported dataset, not the format table. Below is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;import&lt;/STRONG&gt; out=work.test1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datafile='\\DatasetName.sav'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dbms=SAV replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmtlib=work.format1;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering what am&amp;nbsp;I missing? Is this a coding issue or have I misunderstood the import process?&amp;nbsp;Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using SAS 9.4. I am not in a server environment, rather SAS is running on my local machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 08:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/566806#M75086</guid>
      <dc:creator>JennieWalker</dc:creator>
      <dc:date>2019-06-18T08:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to import SPSS data files into SAS and retain formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/566857#M75087</link>
      <description>&lt;P&gt;Perhaps you've already read the article &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-import-SPSS-data-files-into-SAS/ta-p/238581" target="_self"&gt;here on the community about importing SPSS files into SAS&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the SPSS "formats" defined as true SPSS labels in the source data?&amp;nbsp; I think that's the mapping that SAS is looking for and that it will bring over for you.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 13:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/566857#M75087</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-06-18T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to import SPSS data files into SAS and retain formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/567086#M75103</link>
      <description>&lt;P&gt;Thanks for your response. I have read the article - which was very helpful - but it didn't seem to solve my problem WRT the format dataset not being generated. The SPSS files are from an external provider&amp;nbsp;so I may need to check how the formats are saved&amp;nbsp;in SPSS.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 22:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-SPSS-data-files-into-SAS-and-retain-formats/m-p/567086#M75103</guid>
      <dc:creator>JennieWalker</dc:creator>
      <dc:date>2019-06-18T22:32:25Z</dc:date>
    </item>
  </channel>
</rss>

