Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Save HOLD FILE Output as Native Temp Table Using VOLATILE VS GLOBAL_TEMPORARY
Go
New
Search
Notify
Tools
Reply
  
[CLOSED]Save HOLD FILE Output as Native Temp Table Using VOLATILE VS GLOBAL_TEMPORARY
 Login/Join
 
Member
posted
Hi Webfocus users,
Can you please let me know which is the best way to create temporary hold files during the report run to use those temp files/tables as filters for other SQL pass through queries?

We have been using ON TABLE HOLD AS &TMPDITBL FORMAT DB2 PERSISTENCE VOLATILE
and we do SQL DROP TABLE after the report querying is done. We only use these for our complex reports where we are accessing multiple tables. But our DBA's complain that is not the best way to do the temp tables. When we use volatile it is creating the log of the file and the data in it and it takes up lot of resources on the database side.

I check this link but its not much help to decide which one to use VOLATILE or GLOBAL_TEMPORARY .
https://webfocusinfocenter.inf...ang/source/out97.htm

Any suggestion would be helpful. We are using WF 8.1.05 version

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
 
Posts: 29 | Registered: August 12, 2009Reply With QuoteReport This Post
Expert
posted Hide Post
"ON TABLE HOLD AS &TMPDITBL FORMAT ALPHA" to create the temp hold file and "WHERE ThisField IN FILE ('&TMPDITBL.EVAL') as a filter.
Check the syntax as I don't have App Studio available to verify this...


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 3020 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
IF you are using SAME_DB, then the option depends on who will access the table.

Are these other SQL pass through queries from the logged in user (Same session) ? Then use VOLATILE.

If its for other users, then use GLOBAL_TEMPORARY.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6119 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
The SQL DROP is not needed since the tables will be destroyed automatically after the session.

Another option is to use format SQL_SCRIPT.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 399 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Save HOLD FILE Output as Native Temp Table Using VOLATILE VS GLOBAL_TEMPORARY

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.