<?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: some refactoring tool that traverse through SAS SQL/Macro Data Steps? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95151#M20044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you changing the variable name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because you're re-running the code to apply to different variables? Or is it code maintenance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consider looking at macro variables that you set at the beginning and then change in one place instead of replace everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let my_var=age;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.class;&lt;/P&gt;&lt;P&gt;var &amp;amp;my_var;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;table &amp;amp;my_var/missing;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 21:34:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-08-15T21:34:48Z</dc:date>
    <item>
      <title>some refactoring tool that traverse through SAS SQL/Macro Data Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95150#M20043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some software that does refactoring job across sas sql/macro/ iml data steps to realize:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. highlight related variable in all related sas code.&lt;/P&gt;&lt;P&gt;2. change one variable and change all related variables in all related sas codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance, variable $chr, it appears in proc sql 2 times, macro 3 times, data step 1 time&lt;/P&gt;&lt;P&gt;I need tool to highlight $chr in all related code&lt;/P&gt;&lt;P&gt;I need to change one place and change all other places.&lt;/P&gt;&lt;P&gt;I need to measure the change in terms the performance, stability, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 21:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95150#M20043</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-08-15T21:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: some refactoring tool that traverse through SAS SQL/Macro Data Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95151#M20044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you changing the variable name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because you're re-running the code to apply to different variables? Or is it code maintenance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consider looking at macro variables that you set at the beginning and then change in one place instead of replace everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let my_var=age;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.class;&lt;/P&gt;&lt;P&gt;var &amp;amp;my_var;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;table &amp;amp;my_var/missing;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 21:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95151#M20044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-08-15T21:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: some refactoring tool that traverse through SAS SQL/Macro Data Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95152#M20045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS is not a IDE tool like Eclipse or Netbeans . I am afraid it is too hard for sas .But you can use menu EDIT-&amp;gt;REPLACE to replace the variable name , also you can use data step to processs the sas code(sas code is a txt file). But it is also limited for refactoring .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 03:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/some-refactoring-tool-that-traverse-through-SAS-SQL-Macro-Data/m-p/95152#M20045</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-16T03:28:59Z</dc:date>
    </item>
  </channel>
</rss>

