From: Andrew Werden <awerden@prnjunct.com>
Subject: Pointers / Call by Descriptor to Vax Cobol
Date: 1997/06/25 [thread overview]
Message-ID: <33B09C94.48CF@prnjunct.com> (raw)
Does anyone know the syntax/rules of using pointers and dynamic
addressing on VAX Cobol v5? I've got a PL/1 program that is calling a
COBOL program, passing (by reference) the address of a data structure
that will map nicely into a COBOL '01' level.
I thought this would be a simple issue:
1-declare 'MY-POINTER' in linkage section
2-declare 'MY-STRUCTURE' in working storage;
3-PROCEDURE DIVISION USING MY-POINTER
4-SET ADDRESS OF MY-STRUCTURE TO MY-POINTER.
however, the VAX compiler does not support 'SET ADDRESS OF'!!
All documentation I can find shows how to accept data by reference; set
pointers and pass pointers OUT of a COBOL program, but not how to use
pointers passed IN to a COBOL program.
Does the compiler actually support pointers?
What am I doing wrong??
Thanks in advance .......
--
*------------------------------------------------------------------*
*Andrew J Werden Princeton Junction Software*
*tel : 609.936.9248 awerden@prnjunct.com fax : 609.275.7419*
*------------------------------------------------------------------*
reply other threads:[~1997-06-25 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox