dbzTHEdinosaur,
Thank you for the reply, and I can see where my original post was a little misleading. The error about the lack of privileges was corrected by changing which user I authenticated with and it did run statically thereafter. I only mentioned the error because it clued me in to the possibility that I could invoke statically bound SQL through some command (with the right auth id).
More specifically, I am using the JDBC type 2 driver and:
StaticMode = MATCH
I can see how the driver is matching the dynamic sql statement with the statically bound schema, package, and section number, but what is unclear to me is how it is using these three pieces of information to actually INVOKE the bound query.
To be completely honest, I am after a poor man's pureQuery here for type 4 drivers.
1. I know I can easily recreate the capture file and use the db2cap executable to perform the bind operation.
2. I know I can easily match up the dynamic sql with the schema, package, and section number.
3. How do I execute the static SQL?