<?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: How do i fix this error? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690513#M24737</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ELSE 'Other' END AS RACE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;no quotes around a variable name.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 17:37:39 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-09T17:37:39Z</dc:date>
    <item>
      <title>How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690500#M24732</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran this query but i get the following error message. Can anyone assist me in correcting this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	, R.RACE01DSC as Race_Ethnicity LABEL= 'Race/Ethnicity'
	,CASE WHEN RACE01DSC = 'ASIAN' THEN 'Asian'
		  WHEN RACE01DSC = 'BLACK OR AFRICAN AMERICAN' THEN 'Black or African American'
		  WHEN RACE01DSC = 'Hispanic or Latino' THEN 'Hispanic or Latino'
		  WHEN RACE01DSC LIKE ('WHITE%') THEN 'White or Caucasian'
	      WHEN RACE01DSC IN ('Declined', 'Unavailable') THEN 'Unknown'
		  WHEN RACE01DSC IS NULL THEN 'Unknown'
		  ELSE 'Other' END AS 'RACE'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;______&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690500#M24732</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2020-10-09T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690513#M24737</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ELSE 'Other' END AS RACE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;no quotes around a variable name.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690513#M24737</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-09T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690514#M24738</link>
      <description>&lt;P&gt;Remove quotes around your variable name, RACE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;END AS RACE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or add an N after it to tell SAS it's a valid variable name not a character string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;END as 'RACE'n&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/114971"&gt;@wheddingsjr&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran this query but i get the following error message. Can anyone assist me in correcting this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	, R.RACE01DSC as Race_Ethnicity LABEL= 'Race/Ethnicity'
	,CASE WHEN RACE01DSC = 'ASIAN' THEN 'Asian'
		  WHEN RACE01DSC = 'BLACK OR AFRICAN AMERICAN' THEN 'Black or African American'
		  WHEN RACE01DSC = 'Hispanic or Latino' THEN 'Hispanic or Latino'
		  WHEN RACE01DSC LIKE ('WHITE%') THEN 'White or Caucasian'
	      WHEN RACE01DSC IN ('Declined', 'Unavailable') THEN 'Unknown'
		  WHEN RACE01DSC IS NULL THEN 'Unknown'
		  ELSE 'Other' END AS 'RACE'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;______&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690514#M24738</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-09T17:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690531#M24741</link>
      <description>&lt;P&gt;Thanks Reeza and Kurt. That made the query run, however, the new column is populated with "Unknown" regardless what the Race_Ethnicty column is. How does that happen?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690531#M24741</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2020-10-09T17:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690535#M24743</link>
      <description>Sorry, its populated with "OTHER"</description>
      <pubDate>Fri, 09 Oct 2020 18:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690535#M24743</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2020-10-09T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i fix this error?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690542#M24745</link>
      <description>That's a logical error then. &lt;BR /&gt;Run a PROC FREQ on the original column, RACE01DSC, to show us the original values. If they don't match because of case differences is usually the first issue. Second could be invisible spaces. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 18:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-fix-this-error/m-p/690542#M24745</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-09T18:10:59Z</dc:date>
    </item>
  </channel>
</rss>

