ADELIA |
|
|
|
|
(I/B) |
|
|
|
|
Warning: In the case of ADELIA programs, this instruction is not compatible with C generator.
Section for use
All
Syntax
DECL LIST ListName ListComponents Compatibility
ListComponents |
Þ |
ListComponents VarId |
|
|
| ListComponents GlossaryFileRef |
|
|
| ListComponents ListRef |
|
|
| VarId |
|
|
| GlossaryFileRef |
|
|
| ListRef |
|
|
|
Compatibility |
Þ |
None | *COMPATIBLE |
GlossaryFileRef |
Þ | *REF_F(FileName) |
|
||
ListRef |
Þ | *REF_L(ListName) |
Description
Declaration of a list named ListName, which is comprised of environment variables (work variables, screen fields and file variables), and all the fields in a given file, or all the fields in an existing list.
You can refer to all the fields in a file of the glossary, by using the *REF_F keyword followed by the name of a file.
You can refer to all the fields in a list previously defined, by using the *REF_L keyword followed by the name of a list.
Lists in ADELIA programs may not be compatible with those of other program types (VADELIA, SADELIA, WADELIA or MADELIA) when used in packed file fields. You should specify *COMPATIBLE to ensure that the list is compatible if it must be exchanged with such program types.
Note: If a list defined as *COMPATIBLE is sent as a parameter to another ADELIA program, it must also be defined as *COMPATIBLE in the second program.
Example
* Declaration of a memory list with series of fields
DECL LIST LST OPTIONCODE VALUECODE
* reference to a file structure
DECL LIST CUSTOMER_LST *REF_F(CUSTOMER)
* reference to another memory list's structure
DECL LIST LST_3 *REF_L(LST)