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 .
Any suggestion would be helpful. We are using WF 8.1.05 versionThis message has been edited. Last edited by: FP Mod Chuck,
Excel, PDF, Pivot, HTML
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.
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.
|Powered by Social Strata|