<?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: FIND AND REPLACE CODE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FIND-AND-REPLACE-CODE/m-p/143895#M261791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your writing code to run on multiple instances/different parameters then it is probably best to setup your parameters at the beginning of a file (or in separate file) and then reference the macro parameter throughout your code.&amp;nbsp; Saves you have to cntrl+f replace each time.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let MYLIBNAME = ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data &amp;amp;mylibname..newdataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;mylibname..olddataset...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you release to UAT you only need to change the one row %let. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for find / replace, I don't think there are any other tools within the editor itself which would help.&amp;nbsp; You could create a sas program to read in all the necessary sas files and doa datastep to replace the text with something else, but that sounds overcomplicated and takes time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 09:43:00 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-03-14T09:43:00Z</dc:date>
    <item>
      <title>FIND AND REPLACE CODE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FIND-AND-REPLACE-CODE/m-p/143894#M261790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed programs in SAS development here my library name like &lt;STRONG&gt;ABC.&lt;/STRONG&gt;dataset&amp;nbsp; but in UAT library name is different like &lt;STRONG&gt;DBA.&lt;/STRONG&gt;dataset now i'm manually using &lt;STRONG&gt;ctrl + H&amp;nbsp; &lt;/STRONG&gt;and replacing lib name. is any other option/ functions available to find the code and replace the code if I write at starting in the program. pls help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FIND-AND-REPLACE-CODE/m-p/143894#M261790</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2014-03-14T07:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: FIND AND REPLACE CODE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FIND-AND-REPLACE-CODE/m-p/143895#M261791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your writing code to run on multiple instances/different parameters then it is probably best to setup your parameters at the beginning of a file (or in separate file) and then reference the macro parameter throughout your code.&amp;nbsp; Saves you have to cntrl+f replace each time.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let MYLIBNAME = ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data &amp;amp;mylibname..newdataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;mylibname..olddataset...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you release to UAT you only need to change the one row %let. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for find / replace, I don't think there are any other tools within the editor itself which would help.&amp;nbsp; You could create a sas program to read in all the necessary sas files and doa datastep to replace the text with something else, but that sounds overcomplicated and takes time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 09:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FIND-AND-REPLACE-CODE/m-p/143895#M261791</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-03-14T09:43:00Z</dc:date>
    </item>
  </channel>
</rss>

