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