SQL4001 - Temporary result created

SQL4001
Message Text: Temporary result created.
Cause Text: Conditions exist in the query which cause a temporary result to be created. One of the following reasons may be the cause for the temporary result:
  • The table is a join logical file and its join type (JDFTVAL) does not match the join-type specified in the query.
  • The format specified for the logical file refers to more than one physical table.
  • The table is a complex SQL view requiring a temporary table to contain the results of the SQL view.
  • The query contains grouping columns (GROUP BY) from more than one table, or contains grouping columns from a secondary table of a join query that cannot be reordered.
Recovery Text: Performance may be improved if the query can be changed to avoid temporary results.