Awating status from job

Hi,
I need to retrieve list of “awaiting” jobs because i need to schedule in waiting another job as awating…
Can help me?
Thanks