Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Numeric checking in PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
sairam

Active User


Joined: 30 Aug 2005
Posts: 58
Location: Kolkata

PostPosted: Tue Feb 14, 2006 5:54 pm    Post subject: Numeric checking in PL1
Reply with quote

Hi,

What is the built in function for checking a variable numeric or not in pL1,
Is isnumeric(in Cobol) works here?
Back to top
View user's profile Send private message
References
PostPosted: Tue Feb 14, 2006 5:54 pm    Post subject: Re: Numeric checking in PL1 Reply with quote

b_ravieee

New User


Joined: 13 Feb 2006
Posts: 2

PostPosted: Mon Feb 27, 2006 5:16 pm    Post subject: Re: Numeric checking in PL1
Reply with quote

I think we have to Use Verify Command.

For eg if u want to check the Content of VAR_1 is Numeric or Not,Then

Verify (VAR_1,'0123456789') = 0

If the VAR_1 is Numeric then value after this verify will return '0'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1