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.
I am getting the following error and can't find my error could someone offer assistance please.
Error
-* Calculated Amt
DCALCAMT /D20.2MB = IF (action_type = '3') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = '7') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = 'B') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = '4') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
- ELSE IF (action_type = 'C') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
- ELSE 0.00;
0 ERROR AT OR NEAR LINE 246 IN PROCEDURE rf_daily_ach_activ
(FOC281) ALPHA ARGUMENTS IN PLACE WHERE NUMERIC ARE CALLED FOR
-* Calculated Amt
DCALCAMT /D20.2MB = IF (action_type = '3') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = '7') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = 'B') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
- ELSE IF (action_type = '4') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
- ELSE IF (action_type = 'C') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
- ELSE 0.00;
This message has been edited. Last edited by: Kerry,
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
DCALCAMT/D20.2MB =
IF (action_type EQ '3') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE
IF (action_type EQ '3') AND (reserve_release_pct LE 0.00) THEN reserve_release_amt ELSE
IF (action_type EQ '7') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE
IF (action_type EQ '7') AND (reserve_release_pct LE 0.00) THEN reserve_release_amt ELSE
IF (action_type EQ 'B') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE
IF (action_type EQ 'B') AND (reserve_release_pct LE 0.00) THEN reserve_release_amt ELSE
IF (action_type EQ '4') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE
IF (action_type EQ '4') AND (reserve_release_pct LE 0.00) THEN (reserve_release_amt * (-1)) ELSE
IF (action_type EQ 'C') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE
IF (action_type EQ 'C') AND (reserve_release_pct LE 0.00) THEN (reserve_release_amt * (-1)) ELSE 0.00;
END
Note the = signs in the IF statements should be EQ
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
0 ERROR AT OR NEAR LINE 246 IN PROCEDURE rf_daily_ach_activ
(FOC015) THE TEST VALUE IS LONGER THAN THE FIELD FORMAT LENGTH: @
0 ERROR AT OR NEAR LINE 246 IN PROCEDURE rf_daily_ach_activ
(FOC280) COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
0 ERROR AT OR NEAR LINE 254 IN PROCEDURE rf_daily_ach_activ
With this code: I increased the size of DCALCAMT i know the result will not be this large
DCALCAMT /D30.2MB = IF (action_type = 3) AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
ELSE IF (action_type = '7') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
ELSE IF (action_type = 'B') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) ELSE reserve_release_amt
ELSE IF (action_type = '4') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
ELSE IF (action_type = 'C') AND (reserve_release_pct GT 0.00) THEN gross_sales_amt * (reserve_release_pct * 0.01) * (-1) ELSE (reserve_release_amt * (-1))
ELSE 0.00;
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
I'm trying to do to many things at one time...I'll try your example...
Please disregard my previous post...
Thanks
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
Thanks alot for your suggestions...they all worked for me...
Thanks again,
Timothy
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC