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.
You don't say what the result is. Do you get an error message? If so what is the message. If not, then what happens when you execute this fex? Did you switch on tracing and look at the result? Did you run outside of MRE and if so what happens then? Where does the &LOCA parameter get its value?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
(FOC1400) SQLCODE IS 900 (HEX: 00000384) : ORA-00900: invalid SQL statement (FOC1414) EXECUTE IMMEDIATE ERROR. 0 ERROR AT OR NEAR LINE 41 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC003) THE FIELDNAME IS NOT RECOGNIZED: CLLI_CODE BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENT END
&loca value is given dynamically by me
It is not able to read the procedure so could u please tell me how to use oracle stored procedures in webfocus mre
Ricky, your error message seems to indicate that it can read the stored procedure, and that there is an error within the stored proc itself.
I always thought that when calling a stored proc from MRE you had to put -MRNOEDIT BEGIN and END tags around the stored proc call? In our environment, if you don't do that, WebFOCUS cannot locate the stored procedure because it doesn't have the proper connection information. I don't see that in your code, but again, the error you show seems to indicate that WF is finding the stored proc but the error is in the proc itself.
You should read the Adapter Administration for UNIX, Windows, OpenVMS, i5/OS, and z/OS documentation:
Using SQL Passthru is supported for Oracle stored procedures. These procedures need to be developed within Oracle using the CREATE PROCEDURE command.
Note: Calling a stored procedure using SQL Passthru only allows the processing of one answer set per invocation. If multiple answer sets are expected, the CREATE SYNONYM mechanism is preferred.
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
But here i am calling a package(where the procedure resides) so i cannot write CREATE PROCEDURE command. I went through the document and over there also he used the same concept so could u please tell me a way so that i could get around this problem
This is the code that I use to call an Oracle stored procedure from within MRE. The procedure returns the data in a ref cursor.
-MRNOEDIT BEGIN SQL SQLORA SET SERVER ods SQL SQLORA EX rpt_appl.XXX_report_queries.pims_wkly_ops_drilldown '&GNAME', '&AREA_NAME'; -MRNOEDIT END -* TABLE FILE SQLOUT PRINT * ON TABLE HOLD AS XXXXX END