> Can you provide some type of call hierarchy diagram (labeling the various
> levels with Language/Run time environment used) so we can see how program
> flow from top to bottom?
> Thanks.

C main:
Declare a suitable C variable, say a char[8]
Call ISPLINK to VDEFINE the variable to ISPF setting type as USER and the user 
exit entry point to the address of a function declared extern "OS" (#pragma 
linkage(,OS))

Call ISPLINK to do, say, TBCREATE then a TBADD. The act of doing a TBADD will 
require the string value of the VDEFINEd variable, hence call the user exit.

In the user exit I want to call a C function to be run in the same LE 
environment as my main and the C function is to do the formatting of the 
variable (it has to access a body of code that provides the formatting services 
I want access to). Specifically I want the same "static" memory area so that 
global variables have the same values as they did in the C main.
The user exit gets called on a separate subtask 
(http://www-01.ibm.com/support/docview.wss?uid=swg21023983 ), so the issue is 
to "connect" up the subtask to the original LE environment.
The C main is to be run either from TSO environment "interactively" or from 
batch using the ISPSTART PGM= method.
Logically, my C main calls ISPF, and ISPF calls my user exit in the same 
logical "thread". The C main calls ISPF and blocks until ISPF returns. During 
that period ISPF may then call the user exit. Since the C main has blocked 
there is should be no issue running the user exit within the same LE 
environment as if it where run on the same physical thread/task as a nested 
function call. I want it to appear as if

C main -> ISPF -> user exit
as nested function calls.








__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4759 (20100110) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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

Reply via email to