Hello Experts,
My data is:
I would like to replace "0" by space before and after the values:
Mt="0000000302972E" -> Mt_final= 302972E
Mt="0000000141852A0000" ->Mt-final= 141852A
My code is :
data table_2;
set table_1;
if prxmatch("m/0/oi",mt)> 0 then
mt_final=tranwrd(mt,"0","");
run;
But some times with the "0" inside the value like Mt="0000000302972E" it doesn't work because I get Mt_final= 3 2972E, not Mt_final= 302972E.
I'm wondering if there is some option in prxmatch function.
Thank you for helping me !
... View more