Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


/SECTION

Use /SECTION to specify memory-protection attributes for the name section. (name is case sensitive).

/SECTION option syntax
Read syntax diagramSkip visual syntax diagram                  .-----------.  
                  V           |  
>>-/SECTION:name,---attribute-+--------------------------------><
 

Default is: Depends on segment type

Abbreviation is: /SEC

You can specify the attributes that are shown in the table below.

Table 38. Attributes for named sections
Letter Sets attribute
E or X EXECUTE2
R READ
S SHARED
W WRITE1
  1. This attribute is not recommended for code segments.
  2. This attribute is not recommended for data segments.

For example, the following code sets the READ and SHARED attributes, but not the EXECUTE or WRITE attributes, for the section dseg1 in an .EXE file:

/SEC:dseg1,RS

Sections are assigned attributes by default, as shown in the table below.

Table 39. Default attributes for sections
Segment Default attributes
Code sections EXECUTE, READ (ER)
Data sections READ, WRITE (RW), not shared
CONST32_RO section READ, SHARED (RS)

Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)