How do you retrieve the print job number for the job that was just submitted? What I'm trying to do is verify the job that was just submitted was printed successfully.

Any help or code will be helpful.

Thanks in advance for your help.