You do not do it in the query as you would with Oracle ...
To some extent, you can influence the optimizer to select the number of parallel thread by using the CURRENT DEGREE ...
But, I would prefer to let the DB2 optimizer select the most efficient access plan and no. of parallel threads to run ... The optimizer makes this decision based on the number of CPUs. the number of concurrent applications, bufferpool space available, prefetch size of the tablespaces, numioservers, you table statistics etc.
For an example, let's say , you have twnety 2 bllion record tables running on a box with 4 CPUs ... There is no point in spawing twenty threads at the same time as you will not have enough resources to handle the 20 threads ... Effectively, only 4 threads will be doing real work with the remaiing 16 waiting for CPU ...
Generally, in DB2, the optimizer is allowed to make decisions on most things .. You influence optimizer's decision by means of the parameters ..
HTH
Sathyaram