You can specify different attributes for different sets of data or code in two ways:
You can then list the segments in the module definition file under the heading SEGMENTS, and specify attributes for each. For example:
SEGMENTS
mydata SHARED READONLY
mycode PRELOAD
Any segments that you do not specify under SEGMENTS are given the attributes specified by the DATA or CODE statement, depending on the type of segment.
![]()
Example of a Module Definition File