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 trying to convert values in rows into columns and then have them read by variables. Then have the variables display values in the graph. I am using the below query to achieve this. I was hoping that all oracle regular functions would work. But for some reason I get the below error when I use DECODE. I am using oracle 11.0.2.3 as database. I got the same error for the 'LISTAGG' function. Can you please what I am missing here to make it work. If there is an alternate way to achieve, please suggest. Thank you!
Error:
(FOC14067) STATEMENT CONTAINS UNKNOWN SCALAR FUNCTION 'DECODE' ON LINE 2
0 ERROR AT OR NEAR LINE 20 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: TEMPHLD1
BYPASSING TO END OF COMMAND
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: CIS
0 ERROR AT OR NEAR LINE 25 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC2907) ERROR WITH DIALOGUE MANAGER COMMAND: -READFILE CIS
Code
SQL
SELECT MAX(DECODE(COMPONENT_ID, 12, FOOTNOTE)) FN2 ,
MAX(DECODE(COMPONENT_ID, 13, FOOTNOTE)) FN3 ,
MAX(DECODE(COMPONENT_ID, 14, FOOTNOTE)) FN4 ,
MAX(DECODE(COMPONENT_ID, 15, FOOTNOTE)) FN5 ,
MAX(DECODE(COMPONENT_ID, 16, FOOTNOTE)) FN6 ,
MAX(DECODE(COMPONENT_ID, 17, FOOTNOTE)) FN7 ,
MAX(DECODE(COMPONENT_ID, 18, FOOTNOTE)) FN8
FROM
( SELECT DISTINCT COMPONENT_ID,
FOOTNOTE
FROM MDARTADMIN.VW_RPT_MDART_COMP_DATA
WHERE COMPONENT_ID IN (12, 13, 14, 15, 16, 17, 18)
);
TABLE
ON TABLE HOLD AS TEMPHLD1
END
-RUN
TABLE FILE TEMPHLD1
SUM FN2 FN3 FN4 FN5 FN6 FN7 FN8
ON TABLE HOLD AS CIS
END
-RUN
-READFILE CIS
-DEFAULTH &ABC=&FN3.EVAL;
-DEFAULTH &XYZ=&FN4.EVAL;
DEFINE FILE COMP_DATA
This message has been edited. Last edited by: Tamra,
WebFocus 8.1 Service Pack 0.5 Build Version branch8105 Build/GEN Number 119
OS/Platform: Apache Tomcat/8.0.21
Posts: 46 | Location: Baltimore | Registered: October 27, 2016
So in my attempt I did not add "SET SQLENGINE = SQLORA SQL SET DEFAULT_CONNECTION".
Other similar SQL queries (without Decode) that I had used in other graphs, it worked fine without the "SET" statement. I added it this time it worked fine. I guess to use "SQL functions", SET command is must.
Thank you for your help!
WebFocus 8.1 Service Pack 0.5 Build Version branch8105 Build/GEN Number 119
OS/Platform: Apache Tomcat/8.0.21
Posts: 46 | Location: Baltimore | Registered: October 27, 2016
If you do not specify the SQL engine, you can still use SQL, but WebFOCUS will use the metadata (.mas and .acx). You will get an error if the metadata does not exist.
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