<?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: Need to change value of variable in datastep only.. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134079#M10912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a number of records you may want to change the name only when it is abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if name='abc' then name='xyz';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 13:42:00 GMT</pubDate>
    <dc:creator>barheat</dc:creator>
    <dc:date>2013-05-16T13:42:00Z</dc:date>
    <item>
      <title>Need to change value of variable in datastep only..</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134077#M10910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maybe its silly question still i want to know,&lt;/P&gt;&lt;P&gt;I have dataset called test having variable name with value abc so now i want to change the value from abc to xyz using only datastep and no proc. How can i do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have below one (one observation and one variable only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i want below one using only datastep no proc how can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;xyz&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regrads,&lt;/P&gt;&lt;P&gt;Tushar J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 14:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134077#M10910</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2013-05-14T14:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change value of variable in datastep only..</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134078#M10911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you probably have more conditions, but since you haven't stated them the following does what you'd want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;name="xyz";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 15:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134078#M10911</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-14T15:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change value of variable in datastep only..</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134079#M10912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a number of records you may want to change the name only when it is abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if name='abc' then name='xyz';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134079#M10912</guid>
      <dc:creator>barheat</dc:creator>
      <dc:date>2013-05-16T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change value of variable in datastep only..</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134080#M10913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza and barheat&amp;nbsp; it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar Jagtap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 11:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-to-change-value-of-variable-in-datastep-only/m-p/134080#M10913</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2013-05-20T11:15:30Z</dc:date>
    </item>
  </channel>
</rss>

