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     Trouble with calling stored procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Trouble with calling stored procedure
 Login/Join
 
<bigpgo>
posted
Hello. I'm having trouble calling an Oracle stored procedure. I'm on WF 4.x, and I have a stored procedure package MY_PKG with a function myFun1. This procedure takes in a project id and uses a IN OUT cursor to select some columns from a table. (this procedure works when called from other programming languages)
I'm trying:
SQL EX MY_PKG.myFun1 &ProjectID;
-* if I replace the line above with something like:
-* SQL select * from T1 where proj='&ProjectID';
-* then everything works just fine
-* (but I really need to be able to call a stored proc and not do direct SQL in WF code)
TABLE
ON TABLE HOLD AS myReport
END
-RUN
TABLE FILE myReport
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
PRINT *
ON TABLE PCHOLD FORMAT EXL2K
END

And this is failing before it even asks me to input the project id:
there was a error running 'app/test1.fex' this error has to to with the file 'my_pkg.myfun1 &projectid;' it may be missing the internal errorcode was '1023'
Can anyone suggest some ideas for how to do this? I noticed some posts on SQL passthru:
http://documentation.informationbuilders.com/masterinde...tadapt_admin_523.pdf
but this does not allow to return anything from a stored procedure, which is not useful. Thanks.
 
Report This Post
Gold member
posted Hide Post
We are on 5.2 but this is what we do--

SQL SQLORA EX rpts_own.plcy_cvrg_pckg.plcy_cvrg_prc (&NCLM);

the package name is plcy_cvrg_pckg
the procdure name is plcy_cvrg_prc which accepts parm &NCLM
 
Posts: 69 | Location: OH | Registered: November 09, 2004Report This Post
Virtuoso
posted Hide Post
Your missing a couple of things:

The SQL interface type (SQLMSS for me), and the SQLOUT reference when calling a stored procedure answer set. Here is an example of a MS SQL Call:

SQL SQLMSS
EX dbase.dbo.spTest &PARM;
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS temp-name [FORMAT ?]
END
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 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     Trouble with calling stored procedure

Copyright © 1996-2020 Information Builders