Hi, I need to convert an alphanumeric "number" with komma in it to a numeric number. After that I will add these numeric values to a total sum.
For example (alphanumeric values) below:
0,00
10,00
6,00
0,00
Needs to be summed up to (in this case) 16.00 (numeric value).
Further, I want to skip the zero values, but I think I can manage that after they are converted to numerical values.
My main problem is how do I convert them and keep the positions (these numbers are swedish kronas).
Thanks and cheers!
Harald
Converting alfanumeric with komma to numeric
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Converting alfanumeric with komma to numeric
- "Komma" is not a valid English word. I assume you meant "comma" as in the punctuation mark. For that matter, "alfanumeric" is also not an English word. I presume you meant alphanumeric.
- In your example, you show a comma character as a separator to indicate to indicate a decimal fraction follows. In other words, 5,35 is equivalent to 5 35/100. Or, 5.35 as is commonly used in the United States. Is this correct?
Re: Converting alfanumeric with komma to numeric
Hi Steve, yes that is correct. 5,35 should be 5.35 in numeric translation. I would need a way to convert these alphanumeric characters to appropriate numerical values, then only save those higher than zero and sum them up. Easy peasy (NOT). 
Cheers
¨Harald

Cheers
¨Harald
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Converting universal groups to normal Racf group
by aarvalar1 » Thu May 23, 2024 10:15 pm » in Mainframe Security - 5
- 2775
-
by Robert Hansel
View the latest post
Wed Jul 24, 2024 5:12 pm
-
-
-
Retain non numeric character in IFTHEN - BUILD
by Shambu » Wed Dec 01, 2021 5:00 pm » in Syncsort/Synctool - 1
- 1976
-
by sergeyken
View the latest post
Sat Dec 04, 2021 2:28 pm
-