vliyer
Active Member
Hi,
We are in the process to figure out how to call OW business function from
RPG program on AS/400.
I was trying to write this C program (on AS/400) (which I am planning to
call from RPG) to connect to ow, call business function and disconnect from
OW.
I found this piece of code to connect to ow in Inter..Guide.
HENV hEnv=NULL;
HUSER hUser=NULL;
JDEDB_RESULT rcode;
char szEnv[11] = "Environment"; /* ENVIRONMENT */
char szUser[11] = "User ID";
char szPwd[11] = "Password";
if ((rcode= JDB_InitEnvOvr(&hEnv,szEnv,szUser,szPwd))!=JDEDB_PASSED)
{
printf("JDB_InitEnvOvr failed.\n");
return (0);
}
How will I add Include directives for JDE header files for e.g. for "jde.h"
etc. ??
I hope without including missing directives (???) this code is not going to
compile.
1-800-JDELIST , Please help..!!
TIA,
Rgds,
venkat.
We are in the process to figure out how to call OW business function from
RPG program on AS/400.
I was trying to write this C program (on AS/400) (which I am planning to
call from RPG) to connect to ow, call business function and disconnect from
OW.
I found this piece of code to connect to ow in Inter..Guide.
HENV hEnv=NULL;
HUSER hUser=NULL;
JDEDB_RESULT rcode;
char szEnv[11] = "Environment"; /* ENVIRONMENT */
char szUser[11] = "User ID";
char szPwd[11] = "Password";
if ((rcode= JDB_InitEnvOvr(&hEnv,szEnv,szUser,szPwd))!=JDEDB_PASSED)
{
printf("JDB_InitEnvOvr failed.\n");
return (0);
}
How will I add Include directives for JDE header files for e.g. for "jde.h"
etc. ??
I hope without including missing directives (???) this code is not going to
compile.
1-800-JDELIST , Please help..!!
TIA,
Rgds,
venkat.