<?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 ERROR: The value '_RANK_ A1'n is not a valid SAS name. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790978#M253282</link>
    <description>&lt;P&gt;&amp;nbsp;In the below code I get as error the one declared in the title. Due to the fact that the option validvarname=any is used, I would expect that the space in the variable should not cause an error in the proc freq ouput. Please, share what I'm missing&lt;/P&gt;&lt;PRE&gt;%do j=1 %to &amp;amp;nclass;&lt;BR /&gt;&lt;BR /&gt;options validvarname=any;&lt;BR /&gt;&lt;BR /&gt;proc freq data=&amp;amp;train noprint;&lt;BR /&gt;tables &amp;amp;var / out="_&amp;amp;var2.&amp;amp;j"n (drop=count) missing;&lt;BR /&gt;where &amp;amp;target=&amp;amp;j;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%end j;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;MPRINT(NB): proc freq data=move.language_det_train noprint; &lt;BR /&gt;SYMBOLGEN: Macro variable VAR resolves to "rank_ a"n SYMBOLGEN: Macro variable VAR2 resolves to rank_ a &lt;BR /&gt;SYMBOLGEN: Macro variable J resolves to 1 &lt;BR /&gt;ERROR: The value '_RANK_ A1'n is not a valid SAS na&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 18:03:04 GMT</pubDate>
    <dc:creator>dcortell</dc:creator>
    <dc:date>2022-01-19T18:03:04Z</dc:date>
    <item>
      <title>ERROR: The value '_RANK_ A1'n is not a valid SAS name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790978#M253282</link>
      <description>&lt;P&gt;&amp;nbsp;In the below code I get as error the one declared in the title. Due to the fact that the option validvarname=any is used, I would expect that the space in the variable should not cause an error in the proc freq ouput. Please, share what I'm missing&lt;/P&gt;&lt;PRE&gt;%do j=1 %to &amp;amp;nclass;&lt;BR /&gt;&lt;BR /&gt;options validvarname=any;&lt;BR /&gt;&lt;BR /&gt;proc freq data=&amp;amp;train noprint;&lt;BR /&gt;tables &amp;amp;var / out="_&amp;amp;var2.&amp;amp;j"n (drop=count) missing;&lt;BR /&gt;where &amp;amp;target=&amp;amp;j;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%end j;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;MPRINT(NB): proc freq data=move.language_det_train noprint; &lt;BR /&gt;SYMBOLGEN: Macro variable VAR resolves to "rank_ a"n SYMBOLGEN: Macro variable VAR2 resolves to rank_ a &lt;BR /&gt;SYMBOLGEN: Macro variable J resolves to 1 &lt;BR /&gt;ERROR: The value '_RANK_ A1'n is not a valid SAS na&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 18:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790978#M253282</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2022-01-19T18:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The value '_RANK_ A1'n is not a valid SAS name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790979#M253283</link>
      <description>&lt;P&gt;Why do you want a blank in a dataset name? Just remove it from &amp;amp;var2, and you can also remove the ".."n for the dataset name. It will REALLY make your future work easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you insist on making your life miserable, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 18:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790979#M253283</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-19T18:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The value '_RANK_ A1'n is not a valid SAS name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790981#M253285</link>
      <description>Check what the variable name actually is in PROC CONTENTS and use that?&lt;BR /&gt;Or use the EXTEND option as indicated by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;.</description>
      <pubDate>Wed, 19 Jan 2022 18:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-value-RANK-A1-n-is-not-a-valid-SAS-name/m-p/790981#M253285</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-19T18:18:37Z</dc:date>
    </item>
  </channel>
</rss>

