13.13 The DATA Statement

The DATA statement defines the default attributes for all data segments within the application or DLL. The SEGMENTS statement can override this default for one or more specific segments.

Syntax

DATA [[attribute...]]

Remarks

This statement accepts several optional attribute fields: instance, iopl, load, movable, readonly, and shared. Each can appear once, in any order. These fields are described in Section 13.15, “CODE, DATA, and SEGMENTS Attributes.”

Example

The example below defines the application's data segment so that it cannot be shared by multiple copies of the program and cannot be written to. By default, the data segment can be read and written to and a new DGROUP is created for each instance of the application.

DATA NONSHARED READONLY