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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB