Parameterized RUNSQLSTM
June 21, 2002 Timothy Prickett Morgan
Hey, Ted:
Can I pass parameters to an SQL statement in a source member before executing the Run SQL Statement (RUNSQLSTM) command? I’m sure there must be a simple way, but I’ve never seen any examples of this.
For example, today I might like to have the SQL statement select company 005. Tomorrow I might want it to select company 007.
— Darrell
What you want is the ability to put placeholders in the SQL source and specify replacement arguments on the RUNSQLSTM command, as you can do with the Start Query Management Query (STRQMQRY) command.
It may be worth