* Pointers / Call by Descriptor to Vax Cobol
@ 1997-06-25 4:00 Andrew Werden
0 siblings, 0 replies; only message in thread
From: Andrew Werden @ 1997-06-25 4:00 UTC (permalink / 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*
*------------------------------------------------------------------*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-06-25 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-25 4:00 Pointers / Call by Descriptor to Vax Cobol Andrew Werden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox