I want to pass multiple parameters to a pig script from a shell script.

I tried below

>From Shell Script

pig  -f  $ROOT_DIR/pig0.pig -param inputDatePig=$inputDate  -param
StartDate =$SDate -param  EndDate=$EDate

PIG script is as follows

eventData = LOAD 'eap-prod://event' USING
com.engine.data.catalog.pig.DataCatalog ($StartDate, $EndDate,'','x  ,y  ,
'');
Data = FILTER eventData BY  (x=='');
STORE  Data into '$inputDatePig';

i get an error