Judy,
If you have streamed a job there is an environment variable called
hplastjob which contains it's jobnumber.
The application should just do a hpcigetvar to get it.
The hplastjob is not in my manual but works great.
Hope this helps, if you want some code example, do let me know.
Leon Degeling
VrijUit BV
[log in to unmask]http://www.vrolijk.com