gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Re: Linkage Section and maintaining addressability


From: Roger While
Subject: [open-cobol-list] Re: Linkage Section and maintaining addressability
Date: Mon Dec 5 23:10:00 2005

Bill,
Micro Focus does NOT, per default, save addressability over call's.
Attempting to reference a non-passed formal linkage-section parameter
(that has not been the subject of a SET ADDRESS OF) results in a 203 error.

This changes when implicitly (via DIALECT option) or explicitly setting
the STICKY-LINKAGE option.
Info on this option at :
support.microfocus.com
Documentation -> Server Express 4.0 -> Reference -> Compiler Directives.

Roger

It appears to me that the '02 Standard (and BASED items) works DIFFERENTLY
than IBM (and Micro Focus, et al) currently SET ADDRESS data.  According to
the '02 Standard,

"The association ends: ...
  - when the based entry is defined in the linkage section, at the end of
the execution of the runtime element."

This is NOT what happens with today's extensions.  Therefore, different code
will need to be done for the two different types of "allocated" data items.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]