View previous topic :: View next topic
|
Author |
Message |
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
In response to the reply for my query i want clear that i want to check for an integer since if i have given a number with decimal the is numeric gets satisfied.
but what i am asking is only for an integer . |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
This is one way ....
01 SALARY PIC 9(5)V99.
01 RESULT.
05 INTEGER-PART PIC 9(5).
05 FRACTION-PART PIC 99.
MOVE SALARY TO RESULT.
IF FRACTION-PART IS ZERO DISPLAY ?SALARY IS AN INTEGER?
ELSE DISPLAY ?SALARY IS NOT AN INTEGER?.
Please try to use comma, period, etc. This will help us read your question better.
Thanks. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Please provide an example of your situation. Your words are open to a variety of interpretations. |
|
Back to top |
|
|
|