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 report that uses SQL SQLORA passthrough to build a table. I want to save that table, and do some more processing inside a second SQL SQLORA block. Here is the basic idea:
SQL SQLORA select * from someTableName ; TABLE ON TABLE HOLD AS EMPS END
SQL SQLORA SELECT * FROM EMPS WHERE someWhereConditions TABLE ON TABLE HOLD AS FINAL END -RUN
When I run the report webFOCUS complains (FOC1400) SQLCODE IS 942 (HEX: 000003AE) (FOC1409) SQL TABLE NOT FOUND. (FOR TABLE: CHECK SEGNAME AND TABLE) : ORA-00942: table or view does not exist : Erroneous token: EMPS
So it seems like my first table isnt being saved. Any idea what im doing wrong here?
Ok that worked great to solve my first problem but now webFOCUS is complaining again:
(FOC1421) TABLE EXISTS ALREADY. DROP IT OR USE ANOTHER TABLENAME : ORA-00955: name is already used by an existing object : Erroneous token: EMPS
I assure you that EMPS is used nowhere in the report except to reference the hold file I just created.
Arnt these hold files supposed to be deleted when the connection to the server is terminated? If so I don't understand what this error message could mean. I do not see anything in my webFOCUS manual's glossary about DROP either..
But to bump my question: Arent these hold files supposed to be temporary anyway? Or is it because I used the oracle SQL passthrough that i need to issue the drop command?
Any file written to the EDATEMP file is temporary (unless TEMPERASE is set to OFF), anywhere else and you need to do the cleaning for yourself - this includes all SQL data sources.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
SQL SQLORA select * from someTableName ; TABLE ON TABLE HOLD AS EMPS END
SQL SELECT * FROM EMPS WHERE someWhereConditions TABLE ON TABLE HOLD AS FINAL END -RUN
If you want to use the temporary storage option of WebFOCUS, use your original syntax to create EMPS. That will put it in EDATEMP. Then I took the SQLORA off of the second select. It will know to get the file from EDATEMP. Or you can use a TABLE request to do the second query if you wish. Then you don't have to do any cleaning up.