Hello All,
I need to check if an user has changed the amount field in CICS.
Basically I will be checking the received map(the amount field which ix X(14) and is in the format "_ _ _,_ _ _,_ _ _._ _" (11 digits, 2 commas and one dot)
The user can put the value (11 digits or less, as per the amount) with or without the comma and dot. whatever he gives, i have to convert it to a numeric field and update it in DB2.
Can anyone please tell me how to convert that input(alphanumeric) to numeric ? I tried to use NumVal and NumVal-C function, but somehow it is not working.
User input can be -
1000.00
500,000,000.00
500000000.00
500,000.00