Focal Point
USING DATA IN A DB2 GLOBAL TEMP TABLE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/926107243

January 15, 2010, 05:33 PM
John A
USING DATA IN A DB2 GLOBAL TEMP TABLE
I am exploring the use of global temp tables to improve performance of several reports. The problem is that I can't figure out how to use the data in the temp table. Here is my fex:
APP HOLD ETGA

ENGINE DB2 SET DEFAULT_CONNECTION u1xsl01
SQL DB2 PREPARE SQLOUT FOR
SELECT B_BUDGET_ID FROM XSL.BUDGET_PROJECTED
WHERE B_YEAR = '2009' and B_PROMOTION_MONTH = '12'
WITH UR;
END
TABLE FILE SQLOUT
PRINT
B_BUDGET_ID
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLD_BUDGET_ID FORMAT SAME_DB PERSISTENCE VOLATILE
ON TABLE SET HTMLCSS ON
END
APP HOLD ETGA
TABLE FILE HOLD_BUDGET_ID
PRINT
B_BUDGET_ID

END

and here is the error message:

0 NUMBER OF RECORDS IN TABLE= 158 LINES= 158
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD_BUDGET_ID
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD_BUDGET_ID
BYPASSING TO END OF COMMAND

Any help would be greatly appreciated.

thanks - John

v7.6.10


7.6.10
windows
AIX
UDB
SQL Server
January 16, 2010, 03:56 PM
FrankDutch
why do you put it in an hold file?

if posted in an hold file why do you do all the heading and footings ?

the set APP HOLD ETGA sets the path for the location of the file you want to use....

did you get any training?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

January 16, 2010, 06:17 PM
Dan Satchell
Here is a link that will provide you with the correct syntax for using pass-through SQL. Select the link for "Using SQL Translator Commands".

http://documentation.informati...htm?url=topic257.htm


WebFOCUS 7.7.05
January 18, 2010, 09:53 AM
GinnyJakes
Also, SAME_DB was pretty buggy in the early releases of 7.6. I have ..5 and still won't use it. It looks alright in ..10.

You might want to open a case to check the status of your release.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google