[Info-vax] COBOL example $MGBLSC
Arne Vajhøj
arne at vajhoej.dk
Fri Sep 8 08:25:34 EDT 2023
On 9/8/2023 8:08 AM, Brian Schenkenberger wrote:
> On 2023-09-08 01:50:30 +0000, John Reagan said:
>> Yep, POINTER is one of the few COBOL 2002 keywords in the compiler.
>> Just a container of the correct size (64-bits) but you can't really
>> operate onit. You can just pass it to some other routine (in another
>> language that CAN
>> operate on such things)
>
> So, it's useless. I've been trying COBOL examples I've found on the net
> and they fail. That explains why.
>
> So there's no way to $MGBLSC, $EXPREG, LIB$GET_VM and use the region
> created directly in COBOL.
POINTER may be "useless".
But as I showed you just pass an integer with the address by value
to a routine expecting something by reference.
Arne
More information about the Info-vax
mailing list