<?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: Underscore in variable names in Distance Matrix in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287420#M59553</link>
    <description>&lt;P&gt;A SAS name cannot begin with a numerical digit (0 .. 9).&lt;/P&gt;
&lt;P&gt;Therefore, when SAS has to automatically create variable names from numerical values, it prefixes the underline.&lt;/P&gt;
&lt;P&gt;If you want this to be different, make a1 of type char, containing valid names.&lt;/P&gt;
&lt;P&gt;You also might want to consider using the prefix= option in the proc distance statement.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 07:02:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-07-27T07:02:03Z</dc:date>
    <item>
      <title>Underscore in variable names in Distance Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287416#M59552</link>
      <description>&lt;P&gt;I am trying to create a distance matrix with the following piece of code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc distance data=sample shape=SQR out=Dist method=Euclid ;&lt;BR /&gt;var interval(a2--a6 / std=Std);&lt;BR /&gt;id a1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I am getting the output but all the variable names its taking from a1 have an underscore before it, for example a1 has values 1,2 ,3 ,4 ,5 ....and so, and in the distance matrix the variable names become _1, _2, _3, _4, _5... and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody please tell me the reason and guide me the way to remove the same.&lt;/P&gt;&lt;P&gt;Thanks in advance !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 06:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287416#M59552</guid>
      <dc:creator>deega</dc:creator>
      <dc:date>2016-07-27T06:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Underscore in variable names in Distance Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287420#M59553</link>
      <description>&lt;P&gt;A SAS name cannot begin with a numerical digit (0 .. 9).&lt;/P&gt;
&lt;P&gt;Therefore, when SAS has to automatically create variable names from numerical values, it prefixes the underline.&lt;/P&gt;
&lt;P&gt;If you want this to be different, make a1 of type char, containing valid names.&lt;/P&gt;
&lt;P&gt;You also might want to consider using the prefix= option in the proc distance statement.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287420#M59553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-27T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Underscore in variable names in Distance Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287422#M59554</link>
      <description>&lt;P&gt;SAS variable names can't start with a number so to get around that fact it adds an underscore.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'd have to change your variable to start with a character to correct this &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287422#M59554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-27T07:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Underscore in variable names in Distance Matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287425#M59555</link>
      <description>&lt;PRE&gt;
That is what suppose to be . variable name start with a digit is illegal .
If you want this , you could try  options:

options validvarname=any;
proc distance .........

&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Underscore-in-variable-names-in-Distance-Matrix/m-p/287425#M59555</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-27T07:09:24Z</dc:date>
    </item>
  </channel>
</rss>

