<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437828#M109103</link>
    <description>&lt;P&gt;The VALIDVARNAME=ANY only applies to variable names, not member names.&lt;/P&gt;
&lt;P&gt;Try VALIDMEMNAME=EXTEND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure to use a name literal if you name does not follow normal naming conventions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend ;

data 'really$bad name'n ;
  x=1;
run;

proc contents; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Feb 2018 23:45:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-02-15T23:45:43Z</dc:date>
    <item>
      <title>validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437825#M109101</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;As in sas, names begin with letter(lowe or upercase) or (_) but I want to use 2$adc2_&amp;nbsp;&amp;nbsp;&amp;nbsp; as my data set name and using (validvarname=any) .Where&amp;nbsp;validvarname=any should be placed in a data step to make this name(2$adc2_) valid?below is my sas code. any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data 2$adc2_ ; validvarname=any;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input score1 score2 score3;&lt;BR /&gt;datalines;&lt;BR /&gt;90 80 98&lt;BR /&gt;78 88&lt;BR /&gt;65 66 69&lt;BR /&gt;92 94 96&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=2$adc2_;run;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437825#M109101</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-02-15T23:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437826#M109102</link>
      <description>&lt;P&gt;VALIDVARNAME is an option, not on the data set but globally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = any;

data ....&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437826#M109102</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-15T23:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437828#M109103</link>
      <description>&lt;P&gt;The VALIDVARNAME=ANY only applies to variable names, not member names.&lt;/P&gt;
&lt;P&gt;Try VALIDMEMNAME=EXTEND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure to use a name literal if you name does not follow normal naming conventions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend ;

data 'really$bad name'n ;
  x=1;
run;

proc contents; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437828#M109103</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-15T23:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437829#M109104</link>
      <description>&lt;P&gt;This is the correct placement of the option.&amp;nbsp; It will not handle member names like yours.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;&lt;BR /&gt;data '2$adc2_'n;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input score1 score2 score3;&lt;BR /&gt;datalines;&lt;BR /&gt;90 80 98&lt;BR /&gt;78 88&lt;BR /&gt;65 66 69&lt;BR /&gt;92 94 96&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc print data='2$adc2_'n;run;

proc print data=2$adc2_;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437829#M109104</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-15T23:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437837#M109107</link>
      <description>&lt;P&gt;thanks for your reply .still sas is giving me error for both validvarname=any and validvarname=extend&amp;nbsp; &lt;img id="mansad" class="emoticon emoticon-mansad" src="https://communities.sas.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437837#M109107</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-02-15T23:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437839#M109108</link>
      <description>&lt;P&gt;Copy the lines from the SAS log and paste them into the forum.&lt;/P&gt;
&lt;P&gt;Make sure to use the {i} icon to pop-up a code window to paste the text to avoid having the forum editor reformat the text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437839#M109108</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-16T00:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437840#M109109</link>
      <description>&lt;P&gt;Did you n-literalize my names (as I did in my example), which for some reason stripped out the line feeds.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437840#M109109</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-16T00:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437842#M109110</link>
      <description>&lt;P&gt;options validvarname=any;&lt;BR /&gt;56 data '2$adc2_'n;infile datalines;input score1 score2 score3;datalines;&lt;/P&gt;&lt;P&gt;ERROR: The value '2$ADC2_'n is not a valid SAS name.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;56 ! 90 80 9878 8865 66 6992&lt;BR /&gt;--&lt;BR /&gt;180&lt;BR /&gt;56 ! 94 96;proc print data='2$adc2_'n;run;&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;ERROR: The value '2$ADC2_'n is not a valid SAS name.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;58 proc print data=2$adc2_;run;&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR: File WORK.ADC2_.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437842#M109110</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-02-16T00:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437844#M109111</link>
      <description>&lt;P&gt;thanks for your reply. I just copied the codes you corrected and pasted it in sas and executed that!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437844#M109111</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-02-16T00:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437849#M109113</link>
      <description>&lt;P&gt;You are still trying to change the wrong option.&amp;nbsp; validVARname is for VARiable names. You are trying to use dataset (member) name that contains gibberish characters. To do that you need to change the validMEMname option.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437849#M109113</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-16T00:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437851#M109114</link>
      <description>&lt;P&gt;do you mean i should replace&amp;nbsp; validvarname with validMEMname? below is my sas code still giving me error&lt;img id="mansad" class="emoticon emoticon-mansad" src="https://communities.sas.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options validMEMname=any;&lt;BR /&gt;data '2$adc2_'n;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input score1 score2 score3;&lt;BR /&gt;datalines;&lt;BR /&gt;90 80 9878 8865 66 6992 94 96&lt;BR /&gt;;&lt;BR /&gt;proc print data='2$adc2_'n;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437851#M109114</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-02-16T00:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: validvarname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437859#M109115</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60061"&gt;@fatemeh&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;do you mean i should replace&amp;nbsp; validvarname with validMEMname? below is my sas code still giving me error&lt;img id="mansad" class="emoticon emoticon-mansad" src="https://communities.sas.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options validMEMname=any;&lt;BR /&gt;data '2$adc2_'n;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input score1 score2 score3;&lt;BR /&gt;datalines;&lt;BR /&gt;90 80 9878 8865 66 6992 94 96&lt;BR /&gt;;&lt;BR /&gt;proc print data='2$adc2_'n;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And did you read the error?&lt;/P&gt;
&lt;PRE&gt;39    options validmemname=any ;
              ------------
              14

ERROR 14-12: Invalid option value any for SAS option VALIDMEMNAME.
&lt;/PRE&gt;
&lt;P&gt;Did you look at the documentation for that option?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=n10nwm6blrcrtmn0zdcwyxlwxfjh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=n10nwm6blrcrtmn0zdcwyxlwxfjh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 293px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18642iAC6C63236EF3C387/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or read the previous replies to your topic?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18643i79797AAA8EC9CDED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 01:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/validvarname/m-p/437859#M109115</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-16T01:23:39Z</dc:date>
    </item>
  </channel>
</rss>

