Hi,
For a requirement I need to Change the edited COBOL filed to numeric field. Like, the field is like $123,456,789. This field needs to be used in computation, how can I do that?
Changing the edited COBOL filed to numeric field.
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Changing the edited COBOL filed to numeric field.
Use FUNCTION NUMVALC to convert it back to a number.
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Changing the edited COBOL filed to numeric field.
Except NUMVAL does not handle currency symbols while NUMVALC does. Since the posted example has a currency symbol, that is why I recommended NUMVALC over NUMVAL.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute