title: I want to extract only last two numeric values from a string variable in SAS
body: <p>I want to extract only last two numeric values from a string variable and assign it to a new variable. Firstly i have extracted all the numeric values from the string using the code below and assigned it to a new variable but i ultimately want to extract only the last two numeric values so is there any better way to do this.</p>
  
  <pre><code>UI_DUM = input(compress(Prod_Desc,,"kd"),best.);
  </code></pre>
  
  <p>And one more question is: how to assign a temp variable for doing some manupulation work in SAS?</p>