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

Check numeric or alphabet or combination


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Aravind Kumar. S

New User


Joined: 28 Apr 2005
Posts: 26

PostPosted: Wed Jul 06, 2005 5:40 pm
Reply with quote

Hi,


i have to chk a string whether it has numeric or alphabet or combination of both

i've declared i/p string Length as x(10)

i used ,

IS NUMERIC
IS ALPHABETIC
IS ALPHANUMERIC
But it's not working , plz correct me.

Thanks,
Aravind.S
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Wed Jul 06, 2005 9:05 pm
Reply with quote

Hi,

you have to move X(10) into a 9(10) field and check is numeric
similarly move x(10) into A(10) and check is Alphabatic

if none of the above is true then the item is alphanumeric.
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Thu Jul 07, 2005 11:10 pm
Reply with quote

Not sure how this condn will be checked :

"you have to move X(10) into a 9(10) field and check is numeric "

Here we will get SOC7 !!

Pls correct me 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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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
Search our Forums:

Back to Top