C/C++ for MVS: How do I read the master catalog?
Posted on 2009-04-30
I'm trying to get the same output as "ls '*'" from z/OS FTPD.
I think this can be done by reading the master catalog. Until now I found no way to open it from C.
I found out that the master catalog path is in SYS1.NUCLEUS(SYSCATLG). It says: S6SYS1113CCATALOG.Z16S.MASTER
So, my master catalog is CATALOG.Z16S.MASTER. I thought I could be able to open it with fopen, but it doesn't work.
IBMUSER:/u/ibmuser: >uname -a
OS/390 ADCD 16.00 03 9121