<?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: Errors inputting variables from an SPSS file to SAS University in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Errors-inputting-variables-from-an-SPSS-file-to-SAS-University/m-p/394532#M95092</link>
    <description>&lt;P&gt;You don't use a data step to import an SPSS file, you use PROC IMPORT.&lt;/P&gt;
&lt;P&gt;You should move your files out of the SASUSER folder and create a custom folder under myfolders that you can use, IMO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=procEval datafile='/folders/myfolders/xxx 9.2.17.sav' DBMS=SPSS replace; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 10 Sep 2017 19:10:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-10T19:10:56Z</dc:date>
    <item>
      <title>Errors inputting variables from an SPSS file to SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-inputting-variables-from-an-SPSS-file-to-SAS-University/m-p/394529#M95089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been analyzing survey data in SPSS and want to import it into SAS so that I can begin to learn how to conduct similar analyses in SAS. There are up to 59 observations per variable. However, when I try to input variables from the .sav file into a SAS dataset, it gives me 1086 rows, most of which are missing. In addition, it reports values for several hundred observations which never occurred. Like I said, there should only be 59 observations, at most, per variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I am using (with slight redactions for security):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data proceval;&lt;/P&gt;&lt;P&gt;infile '/folders/myfolders/sasuser.v94/XXXX process Evaluation Survey 9.2.17.sav';&lt;/P&gt;&lt;P&gt;input [VariableName]&amp;nbsp;[VariableName];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be causing this???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2017 18:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-inputting-variables-from-an-SPSS-file-to-SAS-University/m-p/394529#M95089</guid>
      <dc:creator>gjenkins3</dc:creator>
      <dc:date>2017-09-10T18:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Errors inputting variables from an SPSS file to SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-inputting-variables-from-an-SPSS-file-to-SAS-University/m-p/394532#M95092</link>
      <description>&lt;P&gt;You don't use a data step to import an SPSS file, you use PROC IMPORT.&lt;/P&gt;
&lt;P&gt;You should move your files out of the SASUSER folder and create a custom folder under myfolders that you can use, IMO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=procEval datafile='/folders/myfolders/xxx 9.2.17.sav' DBMS=SPSS replace; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Sep 2017 19:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-inputting-variables-from-an-SPSS-file-to-SAS-University/m-p/394532#M95092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-10T19:10:56Z</dc:date>
    </item>
  </channel>
</rss>

