Consider using the IBM z/OS IDCAMS utility function DCOLLECT which calls the IBM-standard interface ARCUTIL in order to read the MCDS for you. DCOLLECT options can limit the information being processed/generated, as you desire.
The output file then can be read by a user program, or if you are licensed for DFSORT, consider using the IBM-supplied report programs (thanks to Frank Yaeger's team!). And, as was mentioned before, if you are licensed for SAS on mainframe, it's likely that your site is also (or most definitely should be) licensed for the MXG software from Merrill Consultants http://mxg.com/ which also provides functionality to read and decode the MCDS information using the DCOLLECT/ARCUTIL utility output. Have a look at the z/OS DFSMS Access Method Services for DOC on DCOLLECT, and search the DFSORT home page for more info on the DCOLLECT reporting programs. Here are some useful links on this topic (mind any broken URLs): DCOLLECT DOC info: http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp? topic=/com.ibm.zos.r9.idai200/dcoll.htm IBM System Storage support: DFSORT/MVS - Downloads https://www- 304.ibm.com/systems/support/storage/software/sort/mvs/srtmdwn.html MXG software home page: http://www.mxg.com/ Scott Barry SBBWorks, Inc. ---------------------------------------------------------------------- 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

