Dear AS/400 Lovers!
I need to convert a string containing Numeric-value with two-decimal places into a "Numeric".
Alternatively the string may contain a minus-sign('-') in the beginning of the numeric-string(e.g. '-4321007.86').
The result should be pure numeric i.e. -4321007.86
The string's total length is 11-char, including minus-sign('-') & decimals.
I tried using %TRIM and then %DEC on it to convert the same, but iam not getting the desired/expected result.
Thanks a million in advance for your help.
AS/400, OS/400, RPGILE
June 30, 2010 2:51 PM
July 5, 2010 10:15 PM