<?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 same var  name on right and left side in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/same-var-name-on-right-and-left-side/m-p/857705#M338903</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to convert&amp;nbsp; numeric to char.&lt;/P&gt;
&lt;P&gt;I want to ask :&lt;/P&gt;
&lt;P&gt;What is the reason that in sas we cannot write on left side of the equation same var name as in right side?&lt;/P&gt;
&lt;P&gt;(Usually I am using another name on right side of equation and then use drop and rename.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA t1;
input Store 1 Day $ 3 Sales 5-8;
CARDS;
2 M 2215
2 T 2458
2 W 1798
2 R 1692
2 F 2105
2 S 2847
	;
RUN;

DATA t2 ;
set t1;
Store=put(Store,1.);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Feb 2023 09:58:15 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2023-02-08T09:58:15Z</dc:date>
    <item>
      <title>same var  name on right and left side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-var-name-on-right-and-left-side/m-p/857705#M338903</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to convert&amp;nbsp; numeric to char.&lt;/P&gt;
&lt;P&gt;I want to ask :&lt;/P&gt;
&lt;P&gt;What is the reason that in sas we cannot write on left side of the equation same var name as in right side?&lt;/P&gt;
&lt;P&gt;(Usually I am using another name on right side of equation and then use drop and rename.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA t1;
input Store 1 Day $ 3 Sales 5-8;
CARDS;
2 M 2215
2 T 2458
2 W 1798
2 R 1692
2 F 2105
2 S 2847
	;
RUN;

DATA t2 ;
set t1;
Store=put(Store,1.);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-var-name-on-right-and-left-side/m-p/857705#M338903</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-02-08T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: same var  name on right and left side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-var-name-on-right-and-left-side/m-p/857707#M338905</link>
      <description>&lt;P&gt;In sas the type of a variable is not dynamic, so the type of a variable is defined, it can't be changed.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-var-name-on-right-and-left-side/m-p/857707#M338905</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-02-08T10:08:32Z</dc:date>
    </item>
  </channel>
</rss>

