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     [CLOSED] SQL OPEN CURSOR ERROR. : SQLOUT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SQL OPEN CURSOR ERROR. : SQLOUT
 Login/Join
 
Member
posted
i am try to run SQL query on MYSQL DB. i encounter following error.

(FOC1400) SQLCODE IS 1 (HEX: 00000001)
L (FOC1406) SQL OPEN CURSOR ERROR. : SQLOUT

i am running followings query:

SQL SQLMYSQL
CREATE OR REPLACE VIEW v_member AS
SELECT
members.member_id,
members.member_store_number,
members.member_store_district,
members.member_store_region
FROM members
WHERE
((members.member_store_number)!='99999')
AND ((trade_in_opt_out) = 0) AND ((partner_id)= 109);
END

SQL SQLMYSQL
PREPARE SQLOUT FOR
SELECT
v_member.member_store_region,
v_member.member_store_district,
v_member.member_store_number,
cart_items.ordered_time,
cart_items.physical_status,
cart_items.sku,
cart_items.description,
cart_items.original_price,
cart_items.cart_item_id,
orders.order_id,
cart_items.inspected_price,
cart_items.pre_promo_price,
cart_items.inspected_time

FROM
v_member
INNER JOIN (cart_items INNER JOIN orders ON cart_items.order_id = orders.order_id) ON v_member.member_id = orders.order_store_id
INNER JOIN products ON cart_items.product_id = products.product_id
INNER JOIN prod_categories ON products.category_id = prod_categories.category_id
WHERE
((cart_items.ordered_time) Between '2/3/2013' and ADDDATE(CURDATE(), INTERVAL WEEKDAY(CURDATE())+1 DAY)) AND
((cart_items.financial_status)='paid') AND ((category_reporting_id) NOT IN(4,10,11));
END

TABLE FILE SQLOUT
PRINT
*

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


Webfocus 8.0, windows, Excel
 
Posts: 2 | Location: Peshawar | Registered: September 17, 2014Report This Post
Platinum Member
posted Hide Post
DB may have Lock.. issue with DB.. make sure you read DB


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
 
Posts: 134 | Location: USA | Registered: August 21, 2008Report 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     [CLOSED] SQL OPEN CURSOR ERROR. : SQLOUT

Copyright © 1996-2020 Information Builders