I would try coding a wait (for a few seconds at least) after the dataset close. This would allow time for the deallocate and catalog update to complete. Tim
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

