From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f27fd47d11234b39,start X-Google-Attributes: gid1164f8,public From: Andrew Werden Subject: Pointers / Call by Descriptor to Vax Cobol Date: 1997/06/25 Message-ID: <33B09C94.48CF@prnjunct.com>#1/1 X-Deja-AN: 252395586 Organization: Princeton Junction Software Reply-To: awerden@prnjunct.com Newsgroups: comp.sys.dec 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* *------------------------------------------------------------------*