<?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: formats when exporting to SPSS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/633801#M77914</link>
    <description>&lt;P&gt;Thank you for the reply&lt;/P&gt;</description>
    <pubDate>Sat, 21 Mar 2020 09:05:50 GMT</pubDate>
    <dc:creator>karlbang</dc:creator>
    <dc:date>2020-03-21T09:05:50Z</dc:date>
    <item>
      <title>formats when exporting to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/632733#M77844</link>
      <description>&lt;P&gt;I exported a data set to SPSS. Had to change&lt;/P&gt;&lt;PRE&gt;proc format;
	value degree 1=GOOD 2-5=POOR;
run;&lt;/PRE&gt;&lt;P&gt;into&lt;/P&gt;&lt;PRE&gt;proc format;
	value degree 1=GOOD 2=POOR 3=POOR 4=POOR 5=POOR;
run;&lt;/PRE&gt;&lt;P&gt;in order to get the formatted variable displayed correctly in SPSS. Any clue why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&lt;/P&gt;&lt;PRE&gt;proc export 
	data=sasuser.hernior(keep=(patient age PSTAT LOS))
	outfile='p:\public_html\SPSS\hernior.sav' 
	dbms=spss
	replace;
run;&lt;/PRE&gt;&lt;P&gt;(dbms=sav does not change results).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 17:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/632733#M77844</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2020-03-17T17:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: formats when exporting to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/632737#M77845</link>
      <description>&lt;P&gt;I think that PROC EXPORT does not know how to translate ranges of values into the individual records.&amp;nbsp; Either SPSS does not support applying the same "label" (decode) to multiple values, or PROC EXPORT doesn't know how to generate that syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of the problem is that to SAS 2-5 includes ALL values from 2 to 5, not just the integer values you used in your second format.&amp;nbsp; So a value like 2.5 or 4.3 would also be displayed as POOR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can save yourself some typing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value degree 1='GOOD' 2,3,4,5='POOR';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 17:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/632737#M77845</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-17T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: formats when exporting to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/633801#M77914</link>
      <description>&lt;P&gt;Thank you for the reply&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 09:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formats-when-exporting-to-SPSS/m-p/633801#M77914</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2020-03-21T09:05:50Z</dc:date>
    </item>
  </channel>
</rss>

