On Fri, 18 Mar 2011 13:03:00 -0700, Phil Smith <[email protected]> 
wrote:

>Hoping someone here has more experience with dynamic linking than 
I do. I'm trying to get something to be dynamically callable from COBOL 
on z/OS. This is old-style dynamic calling, not DLL stuff. So I've found 
http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?
topic=/com.ibm.entcobol.doc_4.1/PGandLR/ref/rpsub08.htm and have 
followed that (I believe), but get S806 ABENDs when calling the 
*second* entry point in the target module. So either I've missed 
something, the example is wrong, I'm using some wrong option on the 
linkedit, or it's gremlins.
>

Hi PHSIII!  :-)>

>From the COBOL Programming Guide:

Static calls to alternate entry points work without restriction.
Dynamic calls to alternate entry points require the following elements:
. Either explicitly specified NAME or ALIAS linkage-editor or binder 
control statements, or use of the NAME compiler option which 
generates them automatically.
. An intervening CANCEL for any dynamic call to the same module at a 
different entry point. CANCEL causes the program to be invoked in 
initial state when it is called at a new entry point.

-- 
Dale R. Smith

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to