No, I don't agree. Unfortunately it comes down to parsing report output which is a poor programming interface.
But I would hazard to guess that parsing IDCAMS output is the most used "poor programming" interface on this platform. I see it all the time in old code and new code (even though the CSI has been available and documented for some time). As a matter of fact, because of this there was a fairly recent APAR to change the listing of LISTCAT LEVEL back to a pre z/OS 1.8 format by using the "IDCNOGFL" option (see APAR OA22078). I did check the CSI documentation and didn't find it. It's possible there is a bit set that could be checked (in VSAMTYPE?) and just isn't documented. If I have time I'll put a q&d together later and compare some LDSes that are ZFS and some that aren't. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:[EMAIL PROTECTED] z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html On Fri, 12 Sep 2008 15:19:29 +0200, Lindy Mayfield <[EMAIL PROTECTED]> wrote: >Unfortunately then, this basically comes down to a naming convention, do >you agree? > >-----Original Message----- >From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On >Behalf Of Mark Zelden >Sent: 12. syyskuuta 2008 16:08 >To: IBM-MAIN@BAMA.UA.EDU >Subject: Re: Identify ZFS files in REXX > > >What if it isn't mounted? If you're not using a shared file system >the >chances are you'll come across lots of zFS files that aren't mounted to >the local system. Even if you are in a shared file system environment, >what about backup versions, new versions, alternate sysres files etc. >that >aren't mounted. > >The only sure way may be to check the catalog entry. Unfortunately, I >don't >think the CSI (Catalog Search Interface) has that information, but if >you >do a listcat on all the LDSes in your REXX code and parse the output >(ugly), >you should be able to get the answer. > >Mark >-- >Mark Zelden >Sr. Software and Systems Architect - z/OS Team Lead >Zurich North America / Farmers Insurance Group - ZFUS G-ITO >mailto:[EMAIL PROTECTED] >z/OS Systems Programming expert at >http://expertanswercenter.techtarget.com/ >Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html > >---------------------------------------------------------------------- >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 ---------------------------------------------------------------------- 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