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 alphanumeric(X) values in is numeric clause condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sangar_blr

New User


Joined: 01 Apr 2005
Posts: 8

PostPosted: Fri Apr 01, 2005 2:15 pm    Post subject: Check alphanumeric(X) values in is numeric clause condition
Reply with quote

if u check alphanumeric(X) values in is numeric clause condition what will happen?

for example

1) ws-data pic x(4) value "123".
IF ws-data is numeric
display "sangar"
else
display "gan".
what is the display value?

2) ws-data pic x(4) value "1234".
IF ws-data is numeric
display "sangar"
else
display "gan".
what is the display value?
Back to top
View user's profile Send private message

sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Mon Apr 04, 2005 5:38 pm    Post subject:
Reply with quote

Hi Sangar

the IS numeric clause can be used with alphanumeric field

i suppose

the ist results in "gan". as 123 is passed & the last byte is padded with space

the 2nd result in "sangar"



thanks
siva
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Apr 05, 2005 6:21 am    Post subject:
Reply with quote

An A/N field will test positive for NUMERIC if it only contains the digits
0-9, that is, X'F0' thru X'F9'.

Any other values will result in a failed NUMERIC test.
Back to top
View user's profile Send private message
prasad_yadav20

New User


Joined: 12 Mar 2005
Posts: 13
Location: hyderabad

PostPosted: Tue Apr 05, 2005 6:00 pm    Post subject: if dataset deleted what abend we get
Reply with quote

hi.
if i deleted dataset phisically in 1st step of one proc ,if i want to access same dataset which i am delete in 2nd step then what abend i will get?
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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm


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