<?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 to deal variable name &amp;quot;a2-4&amp;quot; in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600875#M16650</link>
    <description>&lt;P&gt;Depending on how you import there might be options available for SAS to translate source column names into valid SAS variable names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's not a valid name then you must quote it as a SAS name literal when you use the column in code as done below:&lt;/P&gt;
&lt;PRE&gt;'a2-4'n = 5;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Nov 2019 01:24:35 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-11-01T01:24:35Z</dc:date>
    <item>
      <title>how to deal variable name "a2-4"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600874#M16649</link>
      <description>&lt;P&gt;I imported a table from Excel. The variable name is "a2-4". How to deal with these names?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 01:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600874#M16649</guid>
      <dc:creator>walterwang</dc:creator>
      <dc:date>2019-11-01T01:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal variable name "a2-4"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600875#M16650</link>
      <description>&lt;P&gt;Depending on how you import there might be options available for SAS to translate source column names into valid SAS variable names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's not a valid name then you must quote it as a SAS name literal when you use the column in code as done below:&lt;/P&gt;
&lt;PRE&gt;'a2-4'n = 5;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 01:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600875#M16650</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-11-01T01:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal variable name "a2-4"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600876#M16651</link>
      <description>&lt;P&gt;Setting the SAS option VALIDVARNAME to V7 will automatically translate variable names to valid SAS names. So a2-4 will be renamed to a2_4. This is actually a good practice to follow as it avoids having to reference non-valid SAS variable names as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;describes: 'a2-4'n&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 01:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600876#M16651</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-01T01:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal variable name "a2-4"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600892#M16655</link>
      <description>&lt;P&gt;Use the "name literal" as suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;to immediately rename them to valid SAS names (like a2_4).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 07:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-deal-variable-name-quot-a2-4-quot/m-p/600892#M16655</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-01T07:18:05Z</dc:date>
    </item>
  </channel>
</rss>

