I tried to execute the "get snapshot" statement directly on the server and it runs.
Via the clp on my local machine I tried the one you suggested:
Code:
get snapshot for dynamic sql on <mydatabase> in <myinstanceowner>
but I suppose I misunderstood your suggestion because it doesn't run, I get an error about "IN" clause no expected in that position.
Looking at the result of the command (on the server) it seems the same result I get with:
Code:
select * from SYSIBMADM.SNAPDYN_SQL
Isn't it?