Hi Binyamin, Initially I had thought I had fallen foul of letting the clutch out on my fingers before engaging my brain.
The JFCB certainly has a field for DSORG, but as you say it may not contain the correct value. The best source is the File Label (DSCB) and the "z/OS DFSMS: Using Data Sets" Manual implies this can be obtained in one of two ways: 1) - The OBTAIN macro reads a data set control block (DSCB) from a VTOC. 2) - You also can use RDJFCB with the OPEN TYPE=J macro to read a VTOC. When you use the RDJFCB macro, use a DCB and the exit list for the DCB because using an ACB and VSAM exit list would not work. Given the comment about OPEN in the earlier post I had assumed the second method may have been used. Kind regards - Terry Terry Sambrooks Director KMS-IT Limited 228 Abbeydale Road South Dore, Sheffield, S17 3LA, UK Tel: +44 (0)114 262 0933 WEB: www.legac-e.co.uk Company Reg: 3767263 at the above address All outgoing E-mail is scanned, but it remains the recipient's responsibility to ensure their system is protected from spy-ware, trojans, viruses, and worms. ---------------------------------------------------------------------- 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

