title: Is there a better way to replace sas text string other than using tranwrd function
body: <p>I need to replace a series of text strings in sas. I have used the following below code to replace the strings and it works fine.</p>
  
  <p>But still wondering, is there a better and robust way than this to replace the text strings?</p>
  
  <p><strong>The input dataset has more than 100000 observations</strong></p>
  
  <pre><code>_PARAM = tranwrd(tranwrd(tranwrd( tranwrd(tranwrd(param,'/Erythrocytes ',''),'/Leukocytes ',''), '^3','!{super 3}' ), '^6', '!{super 6}'),'/uL', '/µL');
  </code></pre>
  
  <p>Thank you very much in advance</p>
  
  <p>Rakesh.</p>