get smallest available job number