Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Submit JCL to INTRDR and check the st... srajendran2 COBOL Programming 7 Sat Jun 16, 2018 1:30 am
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us