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     [SOLVED] Create Synonym against DB2/LUW stored procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Create Synonym against DB2/LUW stored procedure
 Login/Join
 
Member
posted
Hi all,

I have a stored procedure in my DB2/LUW 9.1 database that prepares a brief case summary when given a case id. The skeleton of this is below:
--------------------------------
Create Procedure ANTOX.CASE_ABSTRACT (IN c_id INTEGER, OUT abstr VARCHAR(2000), OUT o_err INTEGER )
Specific CASE_ABSTRACT
Reads SQL Data
Language SQL
AB: BEGIN
DECLARE temp_abst VARCHAR(2000);
DECLARE v_err INT DEFAULT 0;

OPENQ: BEGIN -- Get the open date and time and the caller's full name
---
a lot of steps to build temp_abst
---
SET abstr = temp_abst;

RETURN abstr, o_err;
END AB!
--------------------------------
The stored procedure works when I call it a DB2 user defined function as well as a direct call in Advanced Query Tool.

I have attempted to create a synonym for this stored procedure using WF Dev Studio 8007 but get the following error when the new synonym process gets to the build synonym.
--------------------------------------------------------------
(FOC1400) SQLCODE IS -104 (HEX:FFFFFF980
:[42601][IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "," was
:found following "NTOX.CASE_ABSTRACT (". Expected tokens may include: "
:". SQLSTATE=42601
(FOC1405) SQL PREPARE ERROR
--------------------------------------------------------------

I am going to revisit my earlier attempt to build it using the Synonym Editor, but if I have the same issues I had earlier with that approach I may be posting those issues here later.

Thanks in advance.
Harold

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.0.1 M
Windows Server 2008
PDF, HTML, Excel
 
Posts: 9 | Location: Urbana, Illinois, USA | Registered: August 16, 2012Report This Post
Master
posted Hide Post
Did you raise case with IBI on this.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
<Kathryn Henning>
posted
Hi Harold,

Thank you for opening a case for this. I'll come back and update this topic with the resolution once it's been published.

Regards,

Kathryn
 
Report This Post
<Kathryn Henning>
posted
Hi All,

The resolution to this issue can be found in the following document link:

FOC1400 -104 when creating synonym for DB2 stored procedure

You will need an ID for InfoResponse Online to view it.

Cheers!

Kathryn
 
Report 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     [SOLVED] Create Synonym against DB2/LUW stored procedure

Copyright © 1996-2020 Information Builders