Prints only jobs in the specified state, any combination of states is possible. -s prs corresponds to the regular qstat output without -s at all. To show recently finished jobs, use -s z. To display jobs in user/operator/system/array-dependency hold, use the -s hu/ho/hs/hd option. The -s ha option shows jobs which where submitted with the qsub -a command. qstat -s hj displays all jobs which are not eligible for execution unless the job has entries in the job dependency list. qstat -s h is an abbreviation for qstat -s huhohshdhjha and qstat -s a is an abbreviation for qstat -s psr (see -a, -hold_jid and -hold_jid_ad options to
It's a combination of the
ha states, and is abbreviated as
qstat -s h, which seems much perferable to typing all those options out. In practical terms, it's the option to print all the jobs that are on hold.
hu == user hold,
ho == operator hold,
hs == system hold, etc.