Search code examples
saslsf

Meaning of jStatus log values in LSF


Am currently trying to decipher the contents of the lsb.events log file, as created by Platform Computing "Platform Process Manager" (Flow Manager), version 8.1.

From the various sources of documentation I see the following descriptions for the jStatus variable:

  • 4=RUN
  • 32=JOB_STAT_EXIT
  • 64=JOB_STAT_DONE

However in the JOB_STATUS entry, there are also jStatus values of 2 and 192. What do these values represent?

Tagging SAS as this implementation was bundled with it. As a side point, I observe that in some cases the actual fields in our lsb.events file are not aligned with those that are supposed to appear according to the aforementioned documentation..


Solution

  • Status 2 represents a job in PSUSP status, which is attained in several ways (for example submitting a job with the -H option to hold it from scheduling).

    For 192, the answer is that the job status is a bitfield. In this case there are 2 bits set:

    • 64 = JOB_STAT_DONE
    • 128 = JOB_STAT_PDONE

    JOB_STAT_PDONE means that the job had a post-execution script defined and it has completed successfully.

    The valid values for the job status bits are in the lsf/lsbatch.h file shipped with LSF in the include directory: <LSF_INSTALL_DIR>/<LSF_VERSION>/include/lsf/lsbatch.h