<?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: Validvarname=ANY can contain numerics? in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764748#M877</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354036"&gt;@jaliu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS Certified Specialist Prep Guide&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(subtitle) Base Programming Using SAS 9.4&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This book?&amp;nbsp;&amp;nbsp;&lt;A href="https://sasinstitute.redshelf.com/book/1830659" target="_blank"&gt;https://sasinstitute.redshelf.com/book/1830659&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Did you check the errata page?&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 29 Aug 2021 18:45:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-08-29T18:45:03Z</dc:date>
    <item>
      <title>Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764683#M854</link>
      <description>&lt;P&gt;With the system option VALIDVARNAME=ANY, which of the following variable&lt;BR /&gt;names is valid?&lt;BR /&gt;a. 4BirthDate&lt;BR /&gt;b. $Cost&lt;BR /&gt;c. Tax-Rate&lt;BR /&gt;d. all of the above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is 'd' but i cannot use A as a variable name and the rules don't state that a number can be included.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 14:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764683#M854</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764688#M856</link>
      <description>Actually none of the options are working.</description>
      <pubDate>Sun, 29 Aug 2021 14:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764688#M856</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764689#M857</link>
      <description>&lt;P&gt;You can't use it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you enclose the variable names in quotes and follow it with the letter N? These won't work unless you do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not it, then show us the LOG (all of it) so we can see what you did and what the error message is. Please copy the log as text and &lt;FONT color="#FF0000"&gt;paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon&lt;/FONT&gt;. &lt;STRONG&gt;DO NOT SKIP THE PART IN RED&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 14:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764689#M857</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-29T14:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764694#M858</link>
      <description>&lt;P&gt;not sure what you mean by window with &amp;lt;/&amp;gt; icon, but here's the log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;options validvarname=V7;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;data testdata ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;set '/home/u49936438/Cert/input/input08b.sas7bdat';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Data file _TEMP4.INPUT08B.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;performance.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Tax-Rate = 50;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;----&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;it says something about format, could that be the problem? for some reason i'm unable to use paths to folders on my computer so i have to find a workaround.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Aug 2021 14:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764694#M858</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T14:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764695#M859</link>
      <description>&lt;P&gt;The &amp;lt;/&amp;gt; icon is in the row of icons immediately above where you type your text. Please re-post your log following the instructions.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764695#M859</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-29T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764699#M860</link>
      <description>&lt;P&gt;Ok, so I tried it with quotation marks and the n. BUT, what I'm wondering is why the guide doesn't book doesn't even mention this...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also it doesn't mention we can use numbers so I'm confused if by the word characters that includes numbers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764699#M860</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764700#M861</link>
      <description>&lt;P&gt;I don't know what guide book you mean. It's clearly mentioned in the SAS documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any time you have a variable that doesn't comply with the SAS variable naming rules, you need VALIDVARNAME=ANY and then enclose the variable name in quotes and follow it with the letter N.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764700#M861</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-29T15:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764707#M862</link>
      <description>&lt;P&gt;It's the prep guide for the exam.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764707#M862</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T15:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764709#M863</link>
      <description>&lt;P&gt;Could you please provide a URL or exact name of this guide?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764709#M863</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-29T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764722#M870</link>
      <description>&lt;P&gt;SAS Certified Specialist Prep Guide&amp;nbsp;&lt;/P&gt;&lt;P&gt;(subtitle) Base Programming Using SAS 9.4&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764722#M870</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T15:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764740#M873</link>
      <description>&lt;P&gt;I don't have this book. So I can't answer any questions about it.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 17:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764740#M873</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-29T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764748#M877</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354036"&gt;@jaliu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS Certified Specialist Prep Guide&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(subtitle) Base Programming Using SAS 9.4&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This book?&amp;nbsp;&amp;nbsp;&lt;A href="https://sasinstitute.redshelf.com/book/1830659" target="_blank"&gt;https://sasinstitute.redshelf.com/book/1830659&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Did you check the errata page?&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 18:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764748#M877</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-29T18:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764751#M878</link>
      <description>&lt;P&gt;No, but thank you for pointing this out. I couldn't get the practice data to load and i'm surprised they made such an egregious mistake with the instructions in the published book.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 19:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764751#M878</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-29T19:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764775#M884</link>
      <description>&lt;P&gt;Also here is where i really dislike the exam questions. I know it doesn't apply to this questions, but if there were no all of the above choice I would have thought that the options needed the quotation marks and n in order to be valid names. Maybe it's not technically asking for syntax, but I could easily see the question being unclear.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 00:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764775#M884</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-30T00:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764777#M885</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354036"&gt;@jaliu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Also here is where i really dislike the exam questions. I know it doesn't apply to this questions, but if there were no all of the above choice I would have thought that the options needed the quotation marks and n in order to be valid names. Maybe it's not technically asking for syntax, but I could easily see the question being unclear.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is a subtle distinction.&amp;nbsp; If you look at printouts, say from PROC CONTENTS, and metadata tables, like DICTIONARY.COLUMNS, you will see that the names are just the text that is like the text in the question.&amp;nbsp; It is only when trying to reference the variable in CODE that you need to use the name literals.&amp;nbsp; That is to avoid confusing the SAS compiler that you indented something other than a name.&amp;nbsp; For example if you had a variable named "457" and typed just 457 into the code the compiler would see a numeric constant instead of a variable.&amp;nbsp; So the name literals are required when the name does not follow the "V7" rules.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 01:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764777#M885</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-30T01:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764814#M887</link>
      <description>&lt;P&gt;This is a very good explanation, but the book does not say this. Maybe you should write one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm realizing that the prep book is not a good tool.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 11:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764814#M887</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-30T11:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validvarname=ANY can contain numerics?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764827#M890</link>
      <description>&lt;P&gt;By default, SAS has column naming rules. You can change that with the VALIDVARNAME= option. If you get a question wrong, it's best to do further research. For example, for the question you posted you have multiple options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. First is to reread about that option in the certification book. I'm not sure what version you have, but the the version I'm looking at explains what VALIDVARNAME= does. It's in Chapter 2 - Basic Concepts. It takes up an entire page. For the version i'm looking at start on page 12 "Rules for SAS Names".&lt;/P&gt;
&lt;P&gt;2. You can also read the quick feedback they give you for a question at the end of the book. It quickly explains why something is correct. Here it explains that if you use the option ANY, the name can begin with&amp;nbsp; or contain any characters, including blanks, national characters, special characters, and multi-byte character. That's the feedback for the exact question you posted.&lt;/P&gt;
&lt;P&gt;3. Lastly, go to the documentation for the full option. Here is the doc for the option:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engfedsrv/p1ffkpdm6kbjawn1wvfpgzuzjcbg.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engfedsrv/p1ffkpdm6kbjawn1wvfpgzuzjcbg.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 13:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Validvarname-ANY-can-contain-numerics/m-p/764827#M890</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2021-08-30T13:03:45Z</dc:date>
    </item>
  </channel>
</rss>

