<?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: Importing SPSS to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/531514#M145474</link>
    <description>Thank you!</description>
    <pubDate>Thu, 31 Jan 2019 01:31:56 GMT</pubDate>
    <dc:creator>Elaine0223</dc:creator>
    <dc:date>2019-01-31T01:31:56Z</dc:date>
    <item>
      <title>Importing SPSS to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/485237#M126040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported a SPSS dataset to SAS by following codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%web_drop_table(GSS.ISSP);&lt;BR /&gt;FILENAME REFFILE '***.sav';&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=SAV&lt;BR /&gt;OUT=GSS.ISSP&lt;BR /&gt;replace;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC CONTENTS DATA=GSS.ISSP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data in the SPSS file was numeric, but in the SAS output dataset, shows characteristic values. However, in the Proc content results, the variable was labeled&amp;nbsp;as numeric. How do I let SAS showing the numeric values in SPSS not the values in SPSS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 18:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/485237#M126040</guid>
      <dc:creator>Elaine0223</dc:creator>
      <dc:date>2018-08-08T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/485274#M126051</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/225340"&gt;@Elaine0223&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I imported a SPSS dataset to SAS by following codes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%web_drop_table(GSS.ISSP);&lt;BR /&gt;FILENAME REFFILE '***.sav';&lt;/P&gt;
&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=SAV&lt;BR /&gt;OUT=GSS.ISSP&lt;BR /&gt;replace;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC CONTENTS DATA=GSS.ISSP;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data in the SPSS file was numeric, but in the SAS output dataset, shows characteristic values. However, in the Proc content results, the variable was labeled&amp;nbsp;as numeric. How do I let SAS showing the numeric values in SPSS not the values in SPSS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since SPSS supports value labels as part of the data SAS creates a SAS format to display those values. Just like any SAS custom format a numeric value would display with the text associated with the format. I suspect if you look in the WORK library you will find a FORMAT catalog and if you examine that catalog will find a number of entries with the names of variables from your set&amp;nbsp;indicating a format created for that variable.&lt;/P&gt;
&lt;P&gt;If you want to see the actual numeric value then you can change the format, either permanently with Proc Datasets or creating a new data set from the imported one and changing the format. Or just assign a numeric format for procedure use.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/485274#M126051</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-08T20:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/531514#M145474</link>
      <description>Thank you!</description>
      <pubDate>Thu, 31 Jan 2019 01:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-to-SAS/m-p/531514#M145474</guid>
      <dc:creator>Elaine0223</dc:creator>
      <dc:date>2019-01-31T01:31:56Z</dc:date>
    </item>
  </channel>
</rss>

