IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

numeric clause


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
katakam

New User


Joined: 07 Feb 2006
Posts: 1
Location: Hyderabad

PostPosted: Tue Feb 14, 2006 7:22 pm
Reply with quote

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
View user's profile Send private message
Owen

New User


Joined: 07 Jul 2005
Posts: 1
Location: Germany

PostPosted: Tue Feb 14, 2006 7:56 pm
Reply with quote

Just say IF A NUMERIC. Then you know if A-NUM is valid.
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Thu Feb 16, 2006 7:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Convert HEX to Numeric DB2 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Handling the numeric data in unstring... COBOL Programming 18
Search our Forums:

Back to Top