<?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 character strings from SPSS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-character-strings-from-SPSS/m-p/197159#M49260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running SAS 9.3 trying to import an SPSS file using the following SAS syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.StuEmp_raw &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "L:\Student Employment\Data\IUPUI_Student_Employee_Survey_raw.sav" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=SPSS REPLACE;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SPSS file contains several String (Character) variables with a length of about 2,000.&amp;nbsp; This should be well within what a character variable in SAS can handle.&amp;nbsp; However, SAS is still breaking the text fields into multiple character variables with a length of $255 (i.e. the default).&amp;nbsp; I could dump the SPSS file into a .csv, but I'd like to maintain the labels on some other variables in the file. How can I specify the length of character variables when importing from SPSS?&amp;nbsp; Will I need to do a data step_&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 14:41:31 GMT</pubDate>
    <dc:creator>SSG</dc:creator>
    <dc:date>2015-06-01T14:41:31Z</dc:date>
    <item>
      <title>Importing character strings from SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-character-strings-from-SPSS/m-p/197159#M49260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running SAS 9.3 trying to import an SPSS file using the following SAS syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.StuEmp_raw &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "L:\Student Employment\Data\IUPUI_Student_Employee_Survey_raw.sav" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=SPSS REPLACE;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SPSS file contains several String (Character) variables with a length of about 2,000.&amp;nbsp; This should be well within what a character variable in SAS can handle.&amp;nbsp; However, SAS is still breaking the text fields into multiple character variables with a length of $255 (i.e. the default).&amp;nbsp; I could dump the SPSS file into a .csv, but I'd like to maintain the labels on some other variables in the file. How can I specify the length of character variables when importing from SPSS?&amp;nbsp; Will I need to do a data step_&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 14:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-character-strings-from-SPSS/m-p/197159#M49260</guid>
      <dc:creator>SSG</dc:creator>
      <dc:date>2015-06-01T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing character strings from SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-character-strings-from-SPSS/m-p/197160#M49261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach might be:&lt;/P&gt;&lt;P&gt;Import as you have, modify settings like length and drop the multiple text bits for single variables. Save as a 0 observations data set.&lt;/P&gt;&lt;P&gt;Then import a CSV and append to the previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try accessing the SAV file using the libname statement instead of Proc Import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had access to SPSS I would see about exporting to SAS from there. The last time I was working with SPSS one option would export the value labels as a SAS format for use as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-character-strings-from-SPSS/m-p/197160#M49261</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-01T15:41:52Z</dc:date>
    </item>
  </channel>
</rss>

