lsb_openjobinfo() takes the following arguments:
LS_LONG_INT jobId; Select job with the given job Idchar *jobName; Select job(s) with the given job namechar *user; Select job(s) submitted by the named useror user groupchar *queue; Select job(s) submitted to the named queuechar *host; Select job(s) that are dispatched to thenamed hostint options; Selection flags constructed from the bitsdefined in lsbatch.h
If options is 0, then the default is CUR_JOB.
lsb_openjobinfo() returns the total number of matching job records in the connection. On failure, it returns -1 and sets lsberrno to indicate the error.