Scott - You will need to pass the address of the heap variable back to COBOL. Then use set address of to associate the address with a COBOL linkage section entry.
You may also need to take into consideration how LE clean's up the heap. Depending on which heap the variable is created in, the life time of that heap may be different that what you expect. Look in the LE programming guide (ceea2190) chapter 14 for details. Sam On Mon, Mar 9, 2015 at 9:08 AM, Scott Ford <[email protected]> wrote: > I have a question about heaps. I want to have a Cobol program call a C > routine, the C routine to place data onto the heap then return back to > Cobol. The question is can Cobol then reference that data ? > > Regards, > Scott > www.identityforge.com > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
