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 have a stored procedure written in sql server and it returns an value through OUT parameter. When I call this procedure inside my report, it gives me error. My question here is, how to retrieve the OUT value coming from the stored procedure?
ex:
Stored procedure ------------------ name - testSP Parameter - parm1 IN parameter parm2 OUT parameter
FEX ---- SQL SQLMSS SET SERVER CONN SQL SQLMSS
EX TESTSP PARM1,PARM2 ;
TABLE FILE SQLOUT PRINT * END -EXITThis message has been edited. Last edited by: Kerry,
WFConsultant
WF 8105M on Win7/Tomcat
Posts: 780 | Location: Florida | Registered: January 09, 2005
Complete documentation, including use of stored procedures and out parameters, is all described in the "Using the Adapter for Microsoft SQL Server" section of you data administrator users's manual.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I have tried that way already but didn't succeed. The sample code is below
-DEFAULT &RT=0;
SQL SQLMSS SET SERVER CRS SQL SQLMSS
EX TESTKAMESHOUTPARAM 61,? ; - throws error
EX TESTKAMESHOUTPARAM 61,?/&RT ; - gives output but return value is wrong.
EX TESTKAMESHOUTPARAM 61,? OUT ; - throws error
TABLE FILE SQLOUT PRINT * END
-TYPE RT VALUE IS: &RT -EXIT
The error I am getting is,
(FOC1400) SQLCODE IS 201 (HEX: 000000C9) XOPEN: 42000 : Microsoft OLE DB Provider for SQL Server: [42000] Procedure 'testKameshO : utParam' expects parameter '@RetVal', which was not supplied. L (FOC1405) SQL PREPARE ERROR.
WFConsultant
WF 8105M on Win7/Tomcat
Posts: 780 | Location: Florida | Registered: January 09, 2005
I am able to get the stored procedure work but my issue is, I want the output to be both the resultset and the returned value (OUT parameter value) to be passed in to webfocus.
EX TESTKAMESHOUTPARAM 61,?/&RT ;
From the above SP, I need to get the recordset and the OUT parameter value assigned to the variable &RT to use later in my fex code.
WFConsultant
WF 8105M on Win7/Tomcat
Posts: 780 | Location: Florida | Registered: January 09, 2005