<?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: Is the Answer Key correct? VALIDVARNAME=ANY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467499#M119336</link>
    <description>&lt;P&gt;Thanks, Kurt. It makes sense now!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2018 18:37:51 GMT</pubDate>
    <dc:creator>ericliuzh1</dc:creator>
    <dc:date>2018-06-04T18:37:51Z</dc:date>
    <item>
      <title>Is the Answer Key correct? VALIDVARNAME=ANY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467484#M119328</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My answer is E to the question below but&amp;nbsp;SAS answer key is C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With the system option VALIDVARNAME=ANY, which of the following variable names is valid?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a. 4BirthDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b. $Cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c. _Items_&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d. Tax-Rate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e. All of the above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the definition, I believe that&amp;nbsp;a, b, and d are all valid names. Can someone let me know why E is not a correct answer?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 17:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467484#M119328</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-04T17:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is the Answer Key correct? VALIDVARNAME=ANY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467488#M119329</link>
      <description>&lt;P&gt;The other names would only be valid if they were enclosed in '...'n and therefore name literals.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 17:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467488#M119329</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-04T17:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is the Answer Key correct? VALIDVARNAME=ANY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467493#M119331</link>
      <description>&lt;P&gt;I can see why you are confused. I suggest you re-read the section of your study guide that deals with VALIDVARNAME and n-literals to see if it makes a distinction between those two concepts. You are correct that all of the&amp;nbsp;variables are valid if you use them as n-literals&amp;nbsp;such as&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;'4BirthDate'n = 1;&lt;BR /&gt;'$Cost'n = 2;&lt;BR /&gt;_Items_ = 3;&lt;BR /&gt;'Tax-Rate'n = 4;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, C is the only variable name that you can use without embedding the name into an n-literal,&amp;nbsp;as shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 18:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467493#M119331</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-04T18:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is the Answer Key correct? VALIDVARNAME=ANY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467498#M119335</link>
      <description>&lt;P&gt;Thanks for the examples! I got it now!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 18:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467498#M119335</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-04T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is the Answer Key correct? VALIDVARNAME=ANY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467499#M119336</link>
      <description>&lt;P&gt;Thanks, Kurt. It makes sense now!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 18:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-the-Answer-Key-correct-VALIDVARNAME-ANY/m-p/467499#M119336</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-04T18:37:51Z</dc:date>
    </item>
  </channel>
</rss>

