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

Check for numeric value


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Fri Jan 09, 2009 3:10 pm
Reply with quote

Hi all,

Please help!

The requirement is to check for a non numeric value in a field.
Please tell me which options are available
for eg:- A is an alphanumeric field.
I need to check whether it is having a non numeric value.

Thanks
Prasanth
Back to top
View user's profile Send private message
beruoist

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Fri Jan 09, 2009 4:29 pm
Reply with quote

You can use mask

Suppose you are having an A5 field which contains numeric value

1 #I (A5)
.
.
.
if #I= MASK(99999) --> this will verify that the field is numeric or not

The other way you can do this is by checking every byte against the alphanumeric character,only if the special characters should not be present in the field.Otherwise you should have to add that check as well,byte by byte.

Guys,Please comment if i am wrong
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
No new posts Convert HEX to Numeric DB2 3
Search our Forums:

Back to Top