[Info-vax] COBOL example $MGBLSC
Arne Vajhøj
arne at vajhoej.dk
Sun Sep 10 22:02:17 EDT 2023
On 9/7/2023 4:51 PM, Arne Vajhøj wrote:
> On 9/7/2023 1:44 PM, Brian Schenkenberger wrote:
>> On 2023-09-07 14:36:31 +0000, Brian Schenkenberger said:
>>> I need to tell a customer how to map, assuming this is even possible,
>>> a global section into which I write data for them. They only do
>>> COBOL. :( Is this possibe? How does one reference the data once
>>> mapped in the expanded region? I've tried to make heads or tails of
>>> COBOL but I get totally lost in the PICs.
>>>
>>> If only somebody would do what Jim Duff did for calling system
>>> services with C but using COBOL. So very few examples exist.
>>
>> OK. I've gotten this far but now I have no idea how to access the
>> data in the mapped region.
>>
>> IDENTIFICATION DIVISION.
...
>> *** NOW WHAT???
...
> For inspiration:
>
> $ type main.cob
> IDENTIFICATION DIVISION.
...
> $ type brian.cob
> IDENTIFICATION DIVISION.
I have updated https://www.vajhoej.dk/arne/articles/vmsipc.html
sections "Shared Memory" and "Memory Mapped File" with:
* added Cobol example (before only C, Fortran and Pascal)
* added expanding P0 region examples (before only mapping
existing address space)
* fixed a small bug in sys$crmpsc call
Arne
More information about the Info-vax
mailing list