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

Numeric checking in PL1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sairam

New User


Joined: 30 Aug 2005
Posts: 58
Location: Kolkata

PostPosted: Tue Feb 14, 2006 5:54 pm
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
b_ravieee

New User


Joined: 13 Feb 2006
Posts: 2

PostPosted: Mon Feb 27, 2006 5:16 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Convert HEX to Numeric DB2 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts REXX - Dataset checking in a do forev... CLIST & REXX 6
No new posts Handling the numeric data in unstring... COBOL Programming 18
Search our Forums:

Back to Top