The __iew_openW() creates a context(_IEWAPIContext) and initializes all of the parameters in the context and loads IEWBIND into memory. If successful, the context is created and returned to user for all subsequent API calls.
This is a ‘C’ function equivalent to binder API STARTD and CREATEW.
This will be enabled by default if the program calling the Binder C/C++ API DLL functions is running under CICS®. It can be explicitly disabled by setting the environment variable IEWBNDD_JSTCBKEY to the value "NO", or explicitly enabled by setting IEWBNDD_JSTCBKEY to "YES", prior to calling __iew_openW().
If enabled for this and all other Binder C/C++ API function calls using the API context returned by this __iew_openW() call, the PSW key will be set to the job step TCB key and then reset back to the current PSW key, around every Binder regular API function call.
#include <__iew_api.h>
_IEWAPIContext *__iew_openW(_IEWTargetRelease __release,
_IEWIntent __intent,
_IEWList *__file_list,
_IEWList *__exit_list,
const char *__parms,
unsigned int *__return_code,
unsigned int *__reason_code);
If successful, __iew_openW() returns API context.
If unsuccessful, __iew_openW() returns NULL.
__iew_create_list()