×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SQL Numeric value out of range error msg

SQL Numeric value out of range error msg

SQL Numeric value out of range error msg

(OP)
Hi,
I'm new to all this SQL stuff, so any help is appreciated...
I get the following message when running the TEST5 fex.
It looks like some value is being exceeded somewhere.
There are 87 fields on the incoming FAT_BSE_SALES_ORDER
file, which is being read from DB2/NT via the ODBC client.

EX TEST5
 (FOC1400) SQLCODE IS 31073 (HEX: 00007961)
   : [22003] [IBM][CLI Driver] CLI0111E  Numeric value out of range. SQLSTATE
   : =22003 [22003] [IBM][CLI Driver] CLI0111E  Numeric value out of range. S
   : QLSTATE=22003
 (FOC1407) SQL FETCH CURSOR ERROR.  : ********

Test5 looke like this:

SQL ODBC
SELECT *
     FROM FAT_BSE_SALES_ORDER
WHERE SO_ORDER_TYPE_ID LIKE 'SO%';

TABLE
ON TABLE HOLD AS PETER2
END
-RUN

RE: SQL Numeric value out of range error msg

See this for error messages :

http://www-3.ibm.com/software/data/datajoiner/booksv2/djxp4m27.htm

I would not do a SELECT * but try each individual file
until you find the offending field i.e.

SELECT FIELD1,FIELD2 FROM .......

Maybe an ODBC issue.

Why not create a WebFOCUS synonym for your TABLE and report from it using WebFOCUS. It would not require WebFOCUS knowledge.

RE: SQL Numeric value out of range error msg

(OP)
Hi FocMan,

Thanks for pointing me in the right direction!
The problem was the contents of 2 BIGINT fields on the table. I thought that I had TOO MANY incoming fields.
Yes, you can generate a Focus master file to map the DB2
table but BIGINT fields are not catered for (not in version 4.3.1) and are ignored; You can get around this by altering the master file and making them P15 fields but I was going the SQL route to avoid having to do this and also because if the underlying DB2 tables change, you must re-generate the master file. In view of the above, though, I may have to re-consider my strategy. Many Thanks again. Peter.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close