Resend: My original reply had subject line "Re: Orphan control blocks". Resending with original subject line. Sorry about that.
This *may* be the classical problem described in Principles of Operation, SA22-7832-10. Look at the description of COMPARE AND SWAP and COMPARE DOUBLE AND SWAP beginning on page 7-127. In particular, note 4 in the Programming Notes on page 7-128 -- 7-129. Finally, Appendix A has sample code you should examine. See the "Free Pool Manipulation" section that begins on page A-50. Compare the code you supplied with the ADD TO FREE LIST Routine on page A-51. Regards, John Ganci ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN