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.
Summary: Syntax
DATA [[attribute...]]
Summary: Remarks
This statement accepts several optional attribute fields: instance, load, movable, readonly, and shared. Each can appear once, in any order. These fields are described in “CODE, DATA, and SEGMENTS Attributes” on page 246.
Summary: Example
The example below defines the application's data segment so that it cannot be shared by multiple copies of the program and it 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