Viewing job dependencies

About this task

The bjdepinfo command displays any dependencies that jobs have, either jobs that depend on a job or jobs that your job depends on.

By specifying -r, you get not only direct dependencies (job A depends on job B), but also indirect dependencies (job A depends on job B, job B depends on jobs C and D). You can also limit the number of levels returned using the -r option.

The -l option displays results in greater detail.

Procedure

  • To display all jobs that this job depends on:

    bjdepinfo 123

    JOBID PARENT PARENT_STATUS PARENT_NAME  LEVEL
    
    123   32522  RUN           JOB32522     1
    
  • To display jobs that depend on a job, you specify (display child jobs):

    bjdepinfo -c 300

    JOBID CHILD CHILD_STATUS CHILD_NAME LEVEL
    
    300   310   PEND         JOB310     1 
    
    300   311   PEND         JOB311     1 
    
    300   312   PEND         JOB312     1 
    
  • To display the parent jobs that cause a job to pend:

    bjdepinfo -p 100

    These jobs are always pending because their dependency has not yet been satisfied.

    JOBID PARENT PARENT_STATUS PARENT_NAME LEVEL
    
    100   99     PEND          JOB99       1
    
    100   98     PEND          JOB98       1
    
    100   97     PEND          JOB97       1
    
    100   30     PEND          JOB30       1
    
  • Display more information about job dependencies including whether the condition has been satisfied or not and the condition that is on the job:
    bjdepinfo -l 32522
    
    Dependency condition of job <32522> is not satisfied: done(23455)
    
    JOBID PARENT PARENT_STATUS PARENT_NAME  LEVEL
    
    32522 23455  RUN           JOB23455     1
    
  • Display information about job dependencies that includes only direct dependencies and two levels of indirect dependencies:
    bjdepinfo -r 3 -l 100
    
    Dependency condition of job <100> is not satisfied: done(99) && ended(98) && done(97) && done(96)
    
    JOBID PARENT PARENT_STATUS PARENT_NAME LEVEL 
    
    100   99     PEND          JOB99       1
    
    100   98     PEND          JOB98       1
    
    100   97     PEND          JOB97       1
    
    100   96     DONE          JOB96       1
    
    Dependency condition of job <97> is not satisfied: done(89)
    
    JOBID PARENT PARENT_STATUS PARENT_NAME LEVEL
    
    97    89     PEND          JOB89       2
    
    Dependency condition of job <89> is not satisfied: ended(86)
    
    JOBID PARENT PARENT_STATUS PARENT_NAME LEVEL
    
    89    86     PEND          JOB86       3