dcs
Member
I am trying to call an RPG program on the iSeries, from a c business function, and have the RPG program return a parameter value. I have tried B34A1030, but that only executes a command. You cannot see the results of the command. I have tried the following, but have not had any luck:
in the header file:
void tss_tstps(JCHAR *, JCHAR *);
#pragma map(tss_tstps,_J("PTSTPASS"))
#pragma linkage(tss_tstps, OS)
in the .c file I call the function and pass in two parameters:
This spins off multiple threads, but the process seems to kill itself and the only messages in the log are:
INFO: Done setting IPC Handle State structures to abandoned, process exiting immediately: iParam: 1311972135
INFO: Entering kernel signal handler, process exiting soon: iParam: 1311972135
INFO: Loop detected in signal handler, process exiting immediately: iParam: 1311972135.
Oracle has an example on their website, but it looks like it is pre-unicode coding. Has anyone tried this before in E900?
in the header file:
void tss_tstps(JCHAR *, JCHAR *);
#pragma map(tss_tstps,_J("PTSTPASS"))
#pragma linkage(tss_tstps, OS)
in the .c file I call the function and pass in two parameters:
This spins off multiple threads, but the process seems to kill itself and the only messages in the log are:
INFO: Done setting IPC Handle State structures to abandoned, process exiting immediately: iParam: 1311972135
INFO: Entering kernel signal handler, process exiting soon: iParam: 1311972135
INFO: Loop detected in signal handler, process exiting immediately: iParam: 1311972135.
Oracle has an example on their website, but it looks like it is pre-unicode coding. Has anyone tried this before in E900?