Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Arithmetic Overflow Error

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Arithmetic Overflow Error
 Login/Join
 
Silver Member
posted
Hi,

I created the following fex and it works great:

MATCH FILE FCT_DLY_ITM_SLS
BY CUST_KEY
RUN
FILE DIM_CUST
BY CUST_KEY
AFTER MATCH HOLD AS CUSTHOLD OLD-NOT-NEW
END
-*
-SET &CUSTIND = IF &LINES EQ 0 THEN 0 ELSE 1;
-*
DEFINE FILE DIM_FOB
CUST_MESSAGE/A65 WITH FOB_CORP_NM = 'No CUST_KEY in FCT without CUST_KEY in DIM_CUST';
CUST_IMAGE/A65 = IF &CUSTIND EQ 0 THEN '' ELSE '';
END
-*
TABLE FILE DIM_FOB
PRINT
CUST_MESSAGE AS ''
CUST_IMAGE AS ''
WHERE RECORDLIMIT EQ 1
END


However, if I change the code to the following so I can print the records in the hold file instead, I get an error (see error below):

MATCH FILE FCT_DLY_ITM_SLS
BY CUST_KEY
RUN
FILE DIM_CUST
BY CUST_KEY
AFTER MATCH HOLD AS CUSTHOLD OLD-NOT-NEW
END
-*
TABLE FILE CUSTHOLD
PRINT *
END

Error:
(FOC1400) SQLCODE IS -99999 (HEX: FFFE7961)
: [01S01] [IBM][CLI Driver] CLI0165E Error in row. SQLSTATE=01S01 [22003]
: [IBM][CLI Driver][DB2] SQL0802N Arithmetic overflow or other arithmeti
: c exception occurred. SQLSTATE=22003
(FOC1407) SQL FETCH CURSOR ERROR. : FCT_DLY_ITM_SLS
BYPASSING TO END OF COMMAND
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: CUSTHOLD
BYPASSING TO END OF COMMAND


Does anyone know why this is happening? Also, I tried using a JOIN instead of MATCH and the same thing is happening.

Thanks!

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Expert
posted Hide Post
The problem is in the first part of your match. A BY fieldname with no print or sum defaults to sum. Whatever it thinks you are adding up is exceeding the default bucket size.

You are getting the error back from DB2 not WebFOCUS. What happens if you translate the first part to SQL and submit it to DB2 directly? What do you get?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Thank you for responding. Unfortunately, I haven't had a chance to try this yet. I will get back to you as soon as I can.

Thanks again,

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Arithmetic Overflow Error

Copyright © 1996-2020 Information Builders