In the following document the word 'space' is used to refer to table space or database. Depending upon the warehouse platform, 'space' refers to a table space or a database or a combination of both.
There are two approaches to creating intermediate tables in a specific space. The prerequisite for both approaches is that the Intermediate Table Type Very Large Database (VLDB) setting is set to 'Permanent Table.'
NOTE: Approach I is for new users who are not familiar with the SQL syntax and Approach II relies on the user's knowledge of SQL syntax.
CAUTION: If both the above approaches are implemented simultaneously, incorrect SQL is generated.
APPROACH I
2 Tier Mode





NOTE: In the above example, this SQL is specific to DB2 OS/390 because the warehouse database is DB2 OS/390. This syntax changes depending upon the warehouse platform.
3 Tier Mode
APPROACH II
This approach utilizes the Table Space and Table Prefix VLDB settings to create intermediate tables in a specific space. Depending upon the warehouse platform, either or both settings are utilized to generate the proper syntax. The following steps are applicable for both 2-tier and 3-tier environments.




NOTE: In this approach the user must know the proper database syntax to create the intermediate tables in a specific space. In this example, SQL specific to DB2 OS/390 is generated, hence, only the Table Space VLDB setting is utilized. Furthermore, the VLDB settings were set at the report level, which means that the Table Space SQL syntax is generated for that particular report only. To force the creation of intermediate tables in a specific space for all the reports in a project, the VLDB setting changes should be carried out at the Database Instance level.