IBM Metal C

Examples

Example 8. Catalog Search Interface Routine

This routine was an attempt to emulate the Linux "stat" of a dataset by retrieving information from the VTOC and the catalog search interface (CSI). Information from the VTOC is obtan by use of the OBTAIN / CAMLST macros along with TRKCALC to perform DASD track capacity calculations. The routine works for non-VSAM and VSAM datasets. Information for TAPE datasets is limited to that returned from the catalog.

Struct fileStat

The struct filestat is the passed to the routine with the dsname field as the only input parameter.

C Source

References

  1. z/OS DFSMS Managing Catalogs
  2. z/OS DFSMSdfp Advanced Services
All references copyright© IBM Corporation.