<?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: multiple varaibles with same name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641407#M191155</link>
    <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150852"&gt;@rohithverma&lt;/a&gt;&amp;nbsp;, if you provide some context for you question, you will likely get more useful answers than all the guessing in the dark that I and others have done.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 16:37:42 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-20T16:37:42Z</dc:date>
    <item>
      <title>multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641349#M191127</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Could we have same variable names two times in sas dataset.Please help me .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eg: NAME SEX HEIGHT WEIGHT SEX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641349#M191127</guid>
      <dc:creator>rohithverma</dc:creator>
      <dc:date>2020-04-20T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641352#M191130</link>
      <description>&lt;P&gt;No, you can't do this. You could name the second occurrence as SEX2&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641352#M191130</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-20T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641359#M191133</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150852"&gt;@rohithverma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's not possible at all in a dataset.&lt;/P&gt;
&lt;P&gt;However, you can have that in &lt;U&gt;a report&lt;/U&gt; for display:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	select name, sex, height, weight, sex from sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-04-20 à 17.26.28.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38472iD627503E2DBAE1D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-04-20 à 17.26.28.png" alt="Capture d’écran 2020-04-20 à 17.26.28.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641359#M191133</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-04-20T15:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641379#M191142</link>
      <description>&lt;P&gt;Another option is to use a variable label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class labels noobs;
var name age sex weight height;
label name = 'Name' age = 'Age' sex = 'Sex' weight = 'Name' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641379#M191142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-20T15:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641406#M191154</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150852"&gt;@rohithverma&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Could we have same variable names two times in sas dataset.Please help me .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eg: NAME SEX HEIGHT WEIGHT SEX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why? Please describe what you would use this for. Possibly in quite a bit of detail.&lt;/P&gt;
&lt;P&gt;At first glance this sounds like a "make SAS data look like Excel" question. Which is in many case not a good idea for analysis. But the final output in a Report may be made to look somewhat like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I spend entirely too much&amp;nbsp; time cleaning up data generated in spreadsheets that has the "same variable" multiple times and NEVER does the variable actually mean the exact same thing. One typical example is "Total". Where in one column Total is "Total number of Students" in another column "Total number of students enrolled in Class X" (repeat for class Y, Z, etc). So the "Total" is not the same value and hence should be a different variable.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641406#M191154</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-20T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641407#M191155</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150852"&gt;@rohithverma&lt;/a&gt;&amp;nbsp;, if you provide some context for you question, you will likely get more useful answers than all the guessing in the dark that I and others have done.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641407#M191155</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-20T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: multiple varaibles with same name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641442#M191177</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150852"&gt;@rohithverma&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Could we have same variable names two times in sas dataset.Please help me .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eg: NAME SEX HEIGHT WEIGHT SEX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No. You can have the same label, though.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/multiple-varaibles-with-same-name/m-p/641442#M191177</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-20T18:23:49Z</dc:date>
    </item>
  </channel>
</rss>

