Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

numeric clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: numeric clause
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    Post subject: Re: numeric clause
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    Post subject: Re: numeric clause
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us