Normally for profiling SQL statements I run STRDBG, then enter in the SQL in STRSQL.
However, I have a CGI RPGLE program that does many SQL statements, most dynamic, and I would like to profile all of them to see which is slowing the program down.
What is the best practice for doing this?