I have a set of SQL scripts stored in QSQLSRC. As far as I know I can execute those scripts using RUNSQSTM. But I need to monitor the count as well. So I would like to copy it and execute it from my RPG program like embedded sql and monitor the count. Is there a way I can do this? Or is it possible to get the count from RUNSQSTM? Any help would be appreciated.
Announcement
Collapse
No announcement yet.
How to execute SQL scripts in source file with SQLRPGLE?
Collapse
X
-
Vectorspace I have INSERT query in the script and with RUNSQLSTM I execute it. If I use CPYSPLF command and bring the SQL string into RPGLE, and execute again, it will cause duplication right?
Comment
-
Peder Udesen the insert query is not embedded in RPG, but it is a script saved in source physical file as a member.
Comment
Comment