Accessing LSF batch job ID and array ID

The variables are as followed:

LSB_JOBID: LSF assigned job ID
LSB_BATCH_JID: Array job ID. Includes job ID and array index number
LSB_JOBINDEX: Job array index

References:

  1. Accessing LSF batch job ID and array ID within job environment