Preparation 
  Create the db2perf_quiet_drop utility stored procedure
    db2 -td@ -f db2perf_utils.db2
  Build & define the C user-defined function
    cp $DB2PATH/samples/c/bldrtn .	# use bldrtn script from DB2 samples
    bldrtn db2perf_udf 	                # compile & copy UDF under sqllib
    db2 connect to <dbname>
    db2 -tvf db2perf_setupudf.db2	# CREATE FUNCTION for UDF
Use
  Connect to the desired database
    db2 connect to <dbname>
  Run the CLP script, sending the output to a file
    db2 -tf db2perf_dynsql.db2 -r db2perf_dynsql.out


For more information, see db2perf.pdf
