Just as a follow-up to another thread.
I could be mistaken, but as far as I know there is NO currently supported COBOL compiler that allows one to do a
Set pointer-data-item to ADDRESS OF Linkage-Section-Item
that does NOT also support
Set pointer-data-item to ADDRESS OF Working-Storage-Item
***
IBM's initial support for SET ADDRES OF was limited to linkage section items (only) but that was fixed about 4 releases ago. They don't even support (any more) the last release with that restriction.
Micro Focus has ALWAYS allowed one to get the address of a WS item - as does Fujitsu (although it is poorly documented in their manuals).
If anyone knows of a SUPPPORTED compiler that allows getting the address of a Linkage section item but not a Working-Storage item, I would be interested in knowing which it is.
Bill Klein
I could be mistaken, but as far as I know there is NO currently supported COBOL compiler that allows one to do a
Set pointer-data-item to ADDRESS OF Linkage-Section-Item
that does NOT also support
Set pointer-data-item to ADDRESS OF Working-Storage-Item
***
IBM's initial support for SET ADDRES OF was limited to linkage section items (only) but that was fixed about 4 releases ago. They don't even support (any more) the last release with that restriction.
Micro Focus has ALWAYS allowed one to get the address of a WS item - as does Fujitsu (although it is poorly documented in their manuals).
If anyone knows of a SUPPPORTED compiler that allows getting the address of a Linkage section item but not a Working-Storage item, I would be interested in knowing which it is.
Bill Klein