<?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 Importing SPSS (*.sav) file into SAS question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/498744#M132619</link>
    <description>&lt;DIV class="feed-shared-update-v2__description feed-shared-inline-show-more-text feed-shared-inline-show-more-text--expanded ember-view"&gt;&lt;DIV class="feed-shared-update-v2__commentary feed-shared-text ember-view"&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;An SPSS file has established lengths for all character fields. However, they all default to 2000 characters as Length, Informat, and Format once imported via Proc Import or Import Wizard. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;The only way I found to get the proper length into SAS is to open the file as SPSS and do Save As with file type .sas7bdat and saving with save value labels box checked off.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;Is there anyway to have Proc Import give me the proper field sizes ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Sep 2018 14:32:05 GMT</pubDate>
    <dc:creator>joemvcnj</dc:creator>
    <dc:date>2018-09-25T14:32:05Z</dc:date>
    <item>
      <title>Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/498744#M132619</link>
      <description>&lt;DIV class="feed-shared-update-v2__description feed-shared-inline-show-more-text feed-shared-inline-show-more-text--expanded ember-view"&gt;&lt;DIV class="feed-shared-update-v2__commentary feed-shared-text ember-view"&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;An SPSS file has established lengths for all character fields. However, they all default to 2000 characters as Length, Informat, and Format once imported via Proc Import or Import Wizard. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;The only way I found to get the proper length into SAS is to open the file as SPSS and do Save As with file type .sas7bdat and saving with save value labels box checked off.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="feed-shared-text__text-view feed-shared-text-view white-space-pre-wrap break-words ember-view"&gt;&lt;SPAN&gt;&lt;SPAN class="ember-view"&gt;Is there anyway to have Proc Import give me the proper field sizes ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Sep 2018 14:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/498744#M132619</guid>
      <dc:creator>joemvcnj</dc:creator>
      <dc:date>2018-09-25T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/498926#M132677</link>
      <description>&lt;P&gt;Have you searched before posting?&lt;/P&gt;
&lt;P&gt;Have you seen &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;this&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 02:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/498926#M132677</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-26T02:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499073#M132748</link>
      <description>&lt;P&gt;That doesn't work. That has to do with Formats and Value Labels (which I don't need), not Length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without Fmtlib statement, It deciphers numeric and character fields just fine. With it added, all character field lengths are still 2000, as are Informat and Format, which are probably derived from Length, and not carried over from SPSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the Import Wizard and saved the SAS Program it created to run later in Background after the PROC Import step. That does not do the job either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is PC-based SAS 9.4 on Windows, not Enterprise SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 13:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499073#M132748</guid>
      <dc:creator>joemvcnj</dc:creator>
      <dc:date>2018-09-26T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499296#M132841</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;Without Fmtlib statement, It deciphers numeric and character fields just fine. With it added, all character field lengths are still 2000,&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the code please.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 22:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499296#M132841</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-26T22:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499876#M133054</link>
      <description>&lt;P&gt;/* PROGRAM 1_000_Import_from_SPSS */&lt;BR /&gt;&lt;BR /&gt;OPTION SYMBOLGEN;&lt;BR /&gt;%LET CCYY = 2018;&lt;BR /&gt;%LET MMDD = 0926;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;LIBNAME&amp;nbsp; S&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"S:\Encrypt - S Drive\DM_Work\Temp_Joe_Versaggi\NJCAT3\&amp;amp;CCYY._&amp;amp;MMDD.";&lt;BR /&gt;&lt;BR /&gt;FILENAME NEWCASES&amp;nbsp;&amp;nbsp; &amp;nbsp;"S:\Encrypt - S Drive\DM_Work\Temp_Joe_Versaggi\NJCAT3\&amp;amp;CCYY._&amp;amp;MMDD.\&lt;BR /&gt;NJCAT 3 Processed Data (2018-09-25 Download) - New Cases (96)&lt;BR /&gt;.sav";&lt;BR /&gt;&lt;BR /&gt;PROC IMPORT&lt;BR /&gt;DATAFILE=NEWCASES&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;OUT=S.pgm_001_New__&amp;amp;ccyy.&amp;amp;mmdd.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DBMS=SPSS REPLACE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;FMTLIB = WORK.FORMATS;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;/* END PROGRAM 1_000 */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/499876#M133054</guid>
      <dc:creator>joemvcnj</dc:creator>
      <dc:date>2018-09-28T12:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/500068#M133113</link>
      <description>&lt;P&gt;You are using DBMS=SPSS.&amp;nbsp; The article that someone linked above used DBMS=SAV.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 03:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/500068#M133113</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-29T03:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS (*.sav) file into SAS question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/500738#M133387</link>
      <description>&lt;P&gt;The result is exactly the same. Length = 2000, Informat and Format $2000 of all character fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;BR /&gt;14&amp;nbsp;&amp;nbsp; DATAFILE=NEWCASES&lt;BR /&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT=S.pgm_001_New__&amp;amp;ccyy.&amp;amp;mmdd.&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable CCYY resolves to 2018&lt;BR /&gt;SYMBOLGEN:&amp;nbsp; Macro variable MMDD resolves to 0926&lt;BR /&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; DBMS=SAV &lt;/STRONG&gt;REPLACE;&lt;BR /&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FMTLIB = WORK.FORMATS;&lt;BR /&gt;18&lt;BR /&gt;19&amp;nbsp;&amp;nbsp; RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The import data set has 96 observations and 388 variables.&lt;BR /&gt;NOTE: S.PGM_001_NEW__20180926 data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT 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; 1.43 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.31 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 15:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-SPSS-sav-file-into-SAS-question/m-p/500738#M133387</guid>
      <dc:creator>joemvcnj</dc:creator>
      <dc:date>2018-10-05T15:08:41Z</dc:date>
    </item>
  </channel>
</rss>

