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] Create temporary table to database.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Create temporary table to database.
 Login/Join
 
Member
posted
Hi experts.

I have code where i create a table in database (Netezza) like this:

TABLE FILE TABLE_A
PRINT *
ON TABLE HOLD AS TMP FORMAT SQLNEZ

This creates every time i run the code a persistent table, which leads to concurrency problems.

What i would like to is create a table that is like a temporary table which lives in the session and has a unique name being discarted when session ends.

Is there any parameter to do that?

Thanks in advance.

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


7706M
AIX 7.1
HTML
 
Posts: 22 | Location: Portugal | Registered: May 07, 2015Report This Post
Master
posted Hide Post
There's no parameter to do that because the temporary table is in the database. You would need to use the DROP TABLE command somewhere in your job flow. However, with Oracle, DROP TABLE is a privileged command, I would assume that it is in Netezza as well.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Member
posted Hide Post
Before you execute code to generate new table drop existing table

ENGINE SQLNEZ SET DEFAULT_CONNECTION VirtualDebit
SQL SQLNEZ DROP TABLE TMP ;
END


WF7702
 
Posts: 6 | Registered: December 03, 2013Report This Post
Expert
posted Hide Post
FYI, for MS SQL Server only, you can create a temporary table by prefixing the table name with a #:
TABLE FILE MSCRM_LIST
PRINT
LISTNAME
WHERE RECORDLIMIT EQ 10
ON TABLE HOLD AS #HLIST FORMAT SQLMSS
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Just yesterday I stumbled about something like that in the documentation of the FORMAT keyword.

If your data is from the same database, apparently you can use FORMAT SAMEDB.
That will create a temporary table in the same DB with your table results.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report 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] Create temporary table to database.

Copyright © 1996-2020 Information Builders