<?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: SPSS variable and value labels to SAS dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21716#M4643</link>
    <description>It has been awhile since I used SPSS but the option to export to SAS had a check box to export the formats and labels. This generated separate SAS code files with PROC FORMAT and LABEL statement syntax.&lt;BR /&gt;
&lt;BR /&gt;
If you didn't check the box no joy for labels or fromats.</description>
    <pubDate>Fri, 05 Nov 2010 22:58:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2010-11-05T22:58:51Z</dc:date>
    <item>
      <title>SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21712#M4639</link>
      <description>I have converted the SPSS dataset into SAS dataset.  However, the variable and value labels developed in SPSS could not be read in SAS.  Please advise me how to maintain the conversion labels.  Thank you.</description>
      <pubDate>Mon, 25 Oct 2010 02:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21712#M4639</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-25T02:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21713#M4640</link>
      <description>Recommend you search the SAS support website  &lt;A href="http://support.sas.com" target="_blank"&gt;http://support.sas.com&lt;/A&gt; -- there are DOC references on the topic with useful information on your query/post.  In particular, the SAS system/architecture has "SAS variable labels" but SAS does not have a concept for "value labels", as I understand from reading support reference material found with a search.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
spss label sas conversion site:sas.com</description>
      <pubDate>Mon, 25 Oct 2010 02:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21713#M4640</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-25T02:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21714#M4641</link>
      <description>I am not test it.&lt;BR /&gt;
Try to use :&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
options label;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
or use proc report to test is.(I am not sure.)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 25 Oct 2010 03:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21714#M4641</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-10-25T03:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21715#M4642</link>
      <description>How are you importing/exporting between packages?&lt;BR /&gt;
&lt;BR /&gt;
I recently found for me that if I export the SPSS data to SAS, from SPSS then I lose my labels and formats. In my export there's also an option to save the formats to a file. This is converting a .sav file to .sas7bdat&lt;BR /&gt;
&lt;BR /&gt;
If I read the SPSS .sav file from SAS then it reads the formats/labels. &lt;BR /&gt;
&lt;BR /&gt;
I'm using SAS 9.2 and SPSS 14.</description>
      <pubDate>Mon, 25 Oct 2010 23:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21715#M4642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2010-10-25T23:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21716#M4643</link>
      <description>It has been awhile since I used SPSS but the option to export to SAS had a check box to export the formats and labels. This generated separate SAS code files with PROC FORMAT and LABEL statement syntax.&lt;BR /&gt;
&lt;BR /&gt;
If you didn't check the box no joy for labels or fromats.</description>
      <pubDate>Fri, 05 Nov 2010 22:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/21716#M4643</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2010-11-05T22:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823344#M81937</link>
      <description>&lt;P&gt;Thank&amp;nbsp;you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;for sharing your approach. I want to use your method to read an SPSS dataset into SAS and bring with it the value and variable labels (It looks like when I export from SPSS to SAS, I can only bring the value labels and not the variable labels).&lt;/P&gt;
&lt;P&gt;1- May you please edit my code to include the value and variable labels?&lt;/P&gt;
&lt;P&gt;2- Also, how may I restrict my SAS data to a subsample. for example, WHERE agegroup = 2;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC IMPORT &lt;BR /&gt;DATAFILE= "C:\SPSSdata.sav" &lt;BR /&gt;OUT=SASdata&lt;BR /&gt;DBMS=sav REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823344#M81937</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2022-07-14T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823348#M81939</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84351"&gt;@Emma_at_SAS&lt;/a&gt;&amp;nbsp;unfortunately I no longer have SPSS to test anything out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For filtering that's fairly easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You've named your output data SASdata and can use a WHERE statement to filter it. See two examples below, one to create a new data set and one to filter a data set in a procedure.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sasData_Group2;
set SASdata;
where agegroup=2;
run;

proc means data=sasdata;
where agegroup=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823348#M81939</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-14T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823350#M81940</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;for your response. I was wondering how to use a WHERE statement in the PROC IMPORT to only import part of a dataset. Maybe that will reduce the time to read a subsample from a larger dataset. Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823350#M81940</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2022-07-14T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823352#M81941</link>
      <description>Most likely not reduce the time but you can try.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;PROC IMPORT&lt;BR /&gt;DATAFILE= "C:\SPSSdata.sav"&lt;BR /&gt;OUT=SASdata (where=(agegroup=2))&lt;BR /&gt;DBMS=sav REPLACE;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823352#M81941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-14T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPSS variable and value labels to SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823354#M81942</link>
      <description>&lt;P&gt;Thank you for your suggestion&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try it. the WHERE statement does not turn blue and my SPSS data is password protected. I cannot check this code now but will check it later. Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPSS-variable-and-value-labels-to-SAS-dataset/m-p/823354#M81942</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2022-07-14T16:18:31Z</dc:date>
    </item>
  </channel>
</rss>

