>This can be accomplished by using the fetch() c run-time library function.
>Check the z/OS C/C++ Run-Time Library Referance book, It contains an
>elaborate example of calling a COBOL program using fetch().
> Gil.

Just a caveat on something that might not be explicit from the
documentation nor the samples: if the dynamic call is in a loop, you should
avoid to fetch and release the called module within the loop. This is just
common sense, I know; good programming practice requires that you
initialize things at the beginning, use those things within the loop and
then clean up at the end of the program. But in this case, it is even more
important, because, depending on how the called module is structured and
what it does in terms of calling other modules and particularly DLLs, all
sorts of strange side-effects may occur.

Cheers,

Jantje.

----------------------------------------------------------------------
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