Is it possible to a function with a varchar argument to accept a number argument without having to use DIGITS function ?
Eg.: col2 is integer type and the first argument is varchar type
db2 => select emdd.lpad( col2, 20, ' ') from emdd.tb1
SQL0440N No authorized routine named "LPAD" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884
It just works when I enter:
db2 => select emdd.lpad( digits(col2), 20, ' ') from emdd.tb1