ENABLE Reference Manual

ENABLE ATTRIBUTES
SIZE Attribute
SIZE Attribute
The SIZE attribute specifies the number of records that the
application displays within a box on the screen. The syntax of
the SIZE attribute is:
-----------------------------------------------------------------
| |
| SIZE <number> |
| |
| <number> |
| |
| is a positive integer that defines the number of records |
| that the application can display within the box. If you |
| enter an invalid value for <number> (such as -2), ENABLE |
| responds with an error message. |
| |
| The starting value of the SIZE attribute is 1. |
| |
-----------------------------------------------------------------
Considerations
This command is useful if you want to display more than one
record occurrence in a box. You can generate an application that
displays a tabular screen by setting SIZE to an appropriate value
and also setting SCREENFORMAT to COMPRESSED, HEADINGS to NULL,
and use BOXTITLE(s) to display appropriate screen labels.
Maximum Size. ENABLE cannot generate an application if the
number of data characters within a box is greater than 2,048. To
determine the number of data characters in a box, multiply the
number of characters per record by the value for SIZE.
DDL OCCURS Clause Nesting. When the SIZE attribute is set to a
value greater than one, OCCURS clause items can be nested to only
three levels. When set to one, OCCURS items can be nested to
four levels. Refer to the Data Definition Language (DDL)
Reference Manual for more information.
4-64