IMO, a assembler subroutine that does RDJFCB is a better option than chasing control blocks. I wrote one that we call from our C++ product and its about 120 lines of assembler code, with XPLINK linkage. However, we use EDCDSECT to convert the JFCB dsect to a C header so that you can look at anything you want from C/C++. It's been very reliable for many years in all sorts of use cases.
Kirk Wolf Dovetailed Technologies http:// <http://dovetail.com>coztoolkit.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN