As Paul pointed out, the problem is that you are running your shell script in a different address space.
You might want to look at BPXBATSL, or even better Co:Z Batch. For a comparison of various tools, see the table here: http://dovetail.com/products/cozbatch.html Kirk Wolf Dovetailed Technologies http://dovetail.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN