Hello All,
I want to connect to another ISeries DB2 database using SQLRPGLE program to do some calculation on it. What I did shows bellow, but I can?t compile this code & thoughts something very wrong in my code.
Is it possible? Any idea please..
Thanks
dhanuxp
I want to connect to another ISeries DB2 database using SQLRPGLE program to do some calculation on it. What I did shows bellow, but I can?t compile this code & thoughts something very wrong in my code.
Is it possible? Any idea please..
Code:
/free
*Inlr = *On;
Exec SQL SET OPTION
Naming = *Sys,
Commit = *None,
UsrPrf = *User,
DynUsrPrf = *User,
Datfmt = *iso,
CloSqlCsr = *EndMod;
Exec SQL CONNECT TO LIVEDB USER myname USING 'mypass';
Exec SQL DECLARE CSR1 CURSOR FOR
SELECT * FROM myLib/myFILE1;
Exec SQL OPEN CSR1;
?..
??
??
Exec SQL CLOSE CSR1;
Exec DISCONNECT LIVEDB;
Code:
SQL0084 30 17 Position 36 SQL statement not allowed.
dhanuxp



Comment