passing an input parameter like date thru jcl using BPXBATCH utility

Hi....

i need to pass the dates (from - to) as the input parameters thru jcl invoking BPXBATCH utility. I know that PARM will do the above functionality. But how the above dates passed through jcl will be linked in the java-db2 program to be used in sql queries in order to generate the report based on the dates??

is this the way of passing the i/p??? Correct me if i m wrong. Kindly look into this regard..
//RUNSTEP EXEC PGM=BPXBATCH,
// PARM='SH 2006-09-07'