If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Ibm As400 Sql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-06, 23:55
cass4409 cass4409 is offline
Registered User
 
Join Date: May 2006
Posts: 2
Question Ibm As400 Sql

Hi,
This is the 1st time I'm writing a SQL program. I understand that there's such a function, Isnumeric(field name). It is able to check a field content to ensure it's all numeric. But I faced problems when using it. Do I have to create the function in order to use it or is it inbuilt in the server? Is there any other ways I can validate a String field to ensure its content is numerical? By the way, I'm working in the IBM AS400 environment.

Eg. 000AK78 - Returns false
0004589 - Returns true

Your help is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 05-30-06, 10:43
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,455
Cool


Unless you write the function yourself, I don't beleive AS400 SQL has an "isnumeric" function.

__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 05-30-06, 22:53
cass4409 cass4409 is offline
Registered User
 
Join Date: May 2006
Posts: 2
Thanks!

Yupyup you are right.
Read up some articles and learnt that I've got to add the function before I can use it in AS400 SQL.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On