|
VADELIA |
SADELIA |
WADELIA |
EADELIA |
(I/B) (C/S) |
(B) (S) |
(I/B) (C/S) |
(B) (C/S) |
Section for use
DECLARATION
Syntax
TEMP_TABLE TableName *REF_LDM(EntityName)
TEMP_TABLE TableName.RPGName *REF_LDM(EntityName)
Description
This instruction declares a temporary table called TableName for which the definition is given by a reference to an entity of the LDM.
Note:
- For the AS/400 platform, TableName is limited to 10 characters. The TEMP_TABLE TableName,RPGName syntax is used to define an alternative name specific to AS/400 generation.
- The lifetime of a temporary table is linked to the process. So, for a given TableName name, there can only be one definition for a given process.
Example
TEMP_TABLE ORD_TMP *REF_LDM(ORDER)