CPI4324 | |
---|---|
Message Text: | Temporary file built for file &1. |
Cause Text: | A temporary file was built for member &3 of file &1 in library &2
for reason code &4. This process took &5 minutes and &6 seconds.
The temporary file was required in order for the query to be processed. The
reason codes and their meanings follow:
|
Recovery Text: | You may want to change the query to refer to a file that does not require a temporary file to be built. |
Before the query processing could begin, the data in the specified table had to be copied into a temporary physical table to simplify running the query. The message help contains the reason why this message was sent.
If the specified table selects few rows, typically less than 1000 rows, then the row selection part of the query's implementation should not take a significant amount of resource and time. However if the query is taking more time and resources than can be allowed, consider changing the query so that a temporary table is not required.
One way to do this is by breaking the query into multiple steps. Consider using an INSERT statement with a subselect to select only the rows that are required into a table, and then use that table's rows for the rest of the query.