Variable list syntax

I’m trying to run a job and pass three variables to the script, the man page says to use a comma separated list, but when I try this, I just get the usage message returned - what am I missing?
The command I’m trying to run is:
qsub -v JNAME=fred, INAME=a2, WORK_DIR=pwd check.qsub

It’s OK if I just try one variable, but fails once I try two or more.

(I’m running on RHEL 7.4).

I believe you’re not supposed to add spaces, it should look like:

qsub -v JNAME=fred,INAME=a2,WORK_DIR="`pwd`" check.qsub

I’ve added quotes around pwd, just incase there are spaces in the output of the command.