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
 

 

Check numeric or alphabet or combination

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Check numeric or alphabet or combination
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    Post subject: Re: Check numeric or alphabet or combination
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    Post subject: Re: Check numeric or alphabet or combination
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    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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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