JOBCNT - examples
Find number of sessions logged on to SYS account:. calc JOBCNT( “@S:@.SYS” )
Display IDs for all waiting jobs:. if JOBCNT(“@J”, jobids) > 0 then. setvar x 0. while setvar(job,word(jobids,,setvar(x,x+1))) < “” and &. JINFO( job, “STATE”) = “WAIT” do . echo #!job. endwhile. endif
Find all job/sessions logged on as you:. JOBCNT(“@!hpjobtype:!hpjobname,!hpuser.!hpaccount”)
Author | Title | Track | Home