> Is there any advantage to using RSECT over CSECT with PARM=RENT?
>
> Regards,
> John K

RSECT is used to mark that a section is intended to be
read-only, so using it instead of CSECT provides a little
additional information to the reader even when RENT checking
is also being done for CSECT.  Apart from that, I don't see
any particular point in using it with RENT.

For HLASM, the RSECT statement is primarily used to allow RENT
checks to be selectively applied to read-only sections when
using NORENT, allowing CSECT to be used for modified sections
(for example when the CSECT contains an initial value which will
be copied into dynamically acquired storage).

If you are assembling for Linux, sections defined with RSECT
will be marked as read-only but CSECT sections will be marked as
read/write (unless you use the "R" option of the ASMAXT2E exit
to mark all control sections as read-only).

Jonathan Scott, HLASM
IBM Hursley, UK

Reply via email to