Bsub array problem

I'm trying to run some computations on a cluster and have found that a bsub array is what I need.. So I tried running a simple example I found

bsub -J "myArray[1-10]" echo "Job \$LSB_JOBINDEX"

This should create 10 jobs that output "Job 1" "Job 2" .. etc. But when I run this from afs space I get the message
"LSB_JOBINDEX: Undefined variable."

LSB_JOBINDEX should be the index of the current array job.. Any ideas what's going on?

Is that correct syntax...check man pages for bsub.