MODIFY { dbtab | *dbtab } [VERSION vers].
Without the VERSION addition, this statement is a short form of the following Open SQL statement for accessing an individual dbtab database table:
MODIFY dbtab FROM { dbtab | *dbtab }.
In the short form, the explicit specification of a work area is omitted. A
table work area or
*dbtab is used implicitly as a work area, which has to be declared with
TABLES. If *dbtab is used instead of the
database table name dbtab, although dbtab is accessed, the
additional table work area is used.
... VERSION vers
Use the VERSION addition to specify the database table dynamically in the short form of the MODIFY statements if its name begins with "T" and includes five characters at most. The database table is acessed whose name is made up of "T" and the content of vers. For vers, a data object with four digits at most of type c must be specified. The line contents are still allocated to the table work area of dbtab or dbtab* whose type is cast. The statement is not excecuted if the database table is not available or if it does not correspond to the naming convention specified above.
The short form and the VERSION addition are not permitted in classes. Instead you should use an explicit work area. Instead of using the VERSION addition, specify the database table dynamically in Open SQL at your operand position.