LSF APIs supports 64-bit batch job ID. The LSF batch job ID will store in a 64-bit integer. It consists of two parts:
The base ID is stored in the lower 32 bits. The array index is shared in the top 32 bits. The top 32 bits are only used when the underlying job is an array job.
LSBLIB provides the following C macros (defined in lsbatch.h) for manipulating job IDs:
LSB_JOBID(base_ID, array_index) Yield an LSF batch job IDLSB_ARRAY_IDX(job_ID) Yield array index part of the job IDLSB_ARRAY_JOBID(job_ID) Yield the base ID part of the job ID
The function calls used to get job information are:
These functions are used to open a job information connection with mbatchd, read job records, and then close the job information connection.