cancel
Showing results for 
Search instead for 
Did you mean: 

extracting last digits in message mapping

Former Member
0 Kudos

Hi

Is there a standard function for extracting last digits of a field value?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

use substring function.

Thanks,

Madhav

Note: Points If Useful

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Pratichi,

I don't believe there is any standard function. You need to write simple UDF in order to achieve it. Like below sample code...


String ret = a.substring(a.length()-4, a.length();
return ret;