what actually done by EXECUTE COMMAND in dynamic sql?
Posted: Tue Dec 14, 2010 7:27 pm
for fetching record by using cursor in dynamic sql sometime we dont need the execute command.why?
Mainframe Technical Support Forums
https://www.ibmmainframeforum.com/
chandrababun wrote:The SQL statement EXECUTE IMMEDIATE causes an SQL statement to prepare and execute, dynamically, at run time. The EXECUTE IMMEDIATE statement must be placed in the PROCEDURE DIVISION.