View previous topic :: View next topic
|
Author |
Message |
katakam
New User
Joined: 07 Feb 2006 Posts: 1 Location: Hyderabad
|
|
|
|
i have a small doubt,plz validate the following statements
01 A PIC X(05).
01 A-NUM REDEFINES A PIC 9(05).
IF A-NUM NUMERIC
PERFORM X-PARA
ELSE
PERFORM Y-PARA.
PLZ validate the above statements,whether numeric can be used here or not???if not when numeric can be used???
explain with some examples..
thanks
katakam. |
|
Back to top |
|
|
Owen
New User
Joined: 07 Jul 2005 Posts: 1 Location: Germany
|
|
|
|
Just say IF A NUMERIC. Then you know if A-NUM is valid. |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
what owen said is correct.
we check the filed which can store char or num ie. alphanumeric filed. so we check whether the numeric data present in the field.
what is the point in checking filed already defined as numeric. |
|
Back to top |
|
|
|