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

How to check for digits in a alphanumeric field


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swathi.a
Warnings : 1

New User


Joined: 05 Feb 2007
Posts: 10
Location: hyd

PostPosted: Thu Mar 15, 2007 12:49 pm
Reply with quote

how to check for digits in a alphanumeric field...
i have declared a field as alphanumeric but it shd accept only alphabets..
how can i chk that condition...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Mar 15, 2007 1:59 pm
Reply with quote

What language?

O.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Mar 15, 2007 2:35 pm
Reply with quote

IF it is COBOL, you can use
IS ALPHABETIC clause. icon_smile.gif

In your case you may like to use
Code:
IF VAR-NAME IS NOT ALPHABETIC
    DISPLAY 'NON ALPHABETIC DATA FOUND''.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Thu Mar 15, 2007 3:44 pm
Reply with quote

Or DATATYPE in REXX
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Sorting Date Field DFSORT/ICETOOL 4
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
Search our Forums:


Back to Top