<?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 Error 20-200  and 20-322 for renaming variables in a data step? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-fix-Error-20-200-and-20-322-for-renaming-variables-in-a/m-p/847040#M41806</link>
    <description>&lt;P&gt;A name with exclamation marks is a non-valid name, unless you have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;set. In which case you must use a&amp;nbsp;&lt;EM&gt;name literal&lt;/EM&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'Alabama!!Housholds!!Estimate'n&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Nov 2022 13:26:35 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-11-30T13:26:35Z</dc:date>
    <item>
      <title>How do I fix Error 20-200  and 20-322 for renaming variables in a data step?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-fix-Error-20-200-and-20-322-for-renaming-variables-in-a/m-p/846973#M41805</link>
      <description>&lt;P&gt;Hello, I've been trying to rename all the variables that start with a state, and end with something like&amp;nbsp;&lt;SPAN&gt;!!Housholds!!Estimate and I keep getting the Error 20-200 saying:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Alphabetic prefixes for enumerated variables (Alabama-Estimate) are different.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Old and new variable name specifications for RENAME must be of the same type.&amp;nbsp;Statement is ignored. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And Error 22-322 says: Syntax error, expecting one of the following: -, :, =.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The symbol is not recognized and will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to change all the variables to a shorted postal abbreviation of the corresponding state. For example I want the variable&amp;nbsp;Alabama!!Housholds!!Estimate to be just AL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, none of my data copied from the first data set to the second dataset, but I created that second dataset. The second dataset just has all of the original variables, but with no observations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jiordani_0-1669787659496.png" style="width: 463px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77837i88BDF77EB0DFE7F8/image-dimensions/463x140?v=v2" width="463" height="140" role="button" title="Jiordani_0-1669787659496.png" alt="Jiordani_0-1669787659496.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jiordani_4-1669788122037.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77841iD2C99014B6B7376C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jiordani_4-1669788122037.png" alt="Jiordani_4-1669788122037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one is the first dataset RegPro.IncoSt&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jiordani_2-1669787911289.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77839i178A2545CB9F70C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jiordani_2-1669787911289.png" alt="Jiordani_2-1669787911289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one is the second dataset RegPro.IncoSt1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jiordani_3-1669788045776.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77840i0877BA8AA745CE9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jiordani_3-1669788045776.png" alt="Jiordani_3-1669788045776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 06:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-fix-Error-20-200-and-20-322-for-renaming-variables-in-a/m-p/846973#M41805</guid>
      <dc:creator>Jiordani</dc:creator>
      <dc:date>2022-11-30T06:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fix Error 20-200  and 20-322 for renaming variables in a data step?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-fix-Error-20-200-and-20-322-for-renaming-variables-in-a/m-p/847040#M41806</link>
      <description>&lt;P&gt;A name with exclamation marks is a non-valid name, unless you have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;set. In which case you must use a&amp;nbsp;&lt;EM&gt;name literal&lt;/EM&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'Alabama!!Housholds!!Estimate'n&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-fix-Error-20-200-and-20-322-for-renaming-variables-in-a/m-p/847040#M41806</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-30T13:26:35Z</dc:date>
    </item>
  </channel>
</rss>

