View previous topic :: View next topic
|
Author |
Message |
dhivakarram
New User
Joined: 27 Jul 2006 Posts: 5 Location: chennai
|
|
|
|
01 WS-NUM-STR1 PIC X(04) VALUE '-450'.
01 WS-NUM-STR2 PIC X(04) VALUE '+450'.
I need to add these two variables to get the result as zero.
I need help to sort out this. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
At the top of the page is a link to "IBM Manuals".
Pick the COBOL Language Reference for your version of COBOL and read about NUMVAL/NUMVAL-C.
Make sure the result field is defined as numeric. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
I'm surprised when I see a basic/rudimentary question like this, from someone who joined the forum nearly fours ago (one and one-half years before I did), but yet, this is only their 5th post?
It certainly makes me wonder....
Bill |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Bill,
Many prefer to watch for topics of interest and read these and only rarely post.
Check out the number of views some of the topics have accumulated (versus the number of replies).
I believe there are very many who have come away with useful info even thought they did not post in the topic(s) that helped
d |
|
Back to top |
|
|
|