I am trying to pass 2 parameters to a DBP one of which is a session temporary table. However I cannot seem to get it to work as the tbl set of construct will not allow me to put the second parameter (As it thinks it is part of the tbl structure?) and in doing it in reverse order fails at the word "set" as the tbl set of construct syntax is incorrect. Any syntactical help is appreciated ?

Hope that made sense ?