> Hi all,
>
[quoted text clipped - 31 lines]
> parameter ... but I want to get record results where playerid is either
> '19' or '01'.
Any particular need to put this into a stored procedure as this always comes
with a well-defined set of parameters.
A simple SELECT would do the job for you:
SELECT *
FROM db2.playlogs_
WHERE playerid_ IN ( '19', '01' )
Or you stored the values in a table and then use a sub-select in the IN
predicate:
SELECT *
FROM db2.playlogs_
WHERE playerid_ IN ( SELECT ...
FROM ... )
Or you build a dynamic SQL statement inside the procedure, prepare that, and
open a cursor over it.

Signature
Knut Stolze
DB2 Information Integration Development
IBM Germany