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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at firstname.lastname@example.org and provide your corporate email address, company, and name.
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.
"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. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005