If I am on SystemA, and I have an SQLRPGLE program with this remote access SQL:
Then I know I need an SQL Package for this program on SystemB.
If I was to run this SQL using RUNSQL, RUNSQLSTM, or STRSQL, then of course I don't need an SQL Package.
Now I thought, you could do this from SQLRPGLE with no SQL Package, if you used PREPARE and EXECUTE
or EXECUTE IMMEDIATE
And I am sure I have done this before and it has worked. But now it's failing saying no SQL Package found.
Has something changed to make this not work any more? Or did I imagine it and it's actually never worked?
Code:
exec sql insert into SystemB/myLib/MyTable values(1,2,3);
If I was to run this SQL using RUNSQL, RUNSQLSTM, or STRSQL, then of course I don't need an SQL Package.
Now I thought, you could do this from SQLRPGLE with no SQL Package, if you used PREPARE and EXECUTE
Code:
sql = 'insert into SystemB/myLib/MyTable values(1,2,3)'; exec sql prepare RemoteWrite from :sql; exec sql execute RemoteWrite;
Code:
sql = 'insert into SystemB/myLib/MyTable values(1,2,3)'; exec sql execute immediate :sql;
Has something changed to make this not work any more? Or did I imagine it and it's actually never worked?
Comment