Is there an inbuilt DB2 function or any query to check if the character i have is a number? (I cannot use user defined functions)
if you version of db2 can use regexp_like you can do it:
number with "." as decimal symbol:
select * from yourtable
where REGEXP_LIKE(trim(yourzone) , '^\d+(\.\d*)?$')
number with "," as decimal symbol:
select * from yourtable
where REGEXP_LIKE(trim(yourzone) , '^\d+(\,\d*)?$')
number without decimal symbol ( integer only, your ask)
select * from yourtable
where REGEXP_LIKE(trim(yourzone) , '^\d+$')