Skip to content

Return catalog name in DSLIST from __listds() #13

@mgrossmann

Description

@mgrossmann

Summary

__listds() does not return the catalog name that resolved a dataset entry. The z/OSMF dataset list API requires a catnm field (e.g. "CATPAK.MASTER.CATALOG").

Current state

__listc() uses IDCAMS LISTCAT internally, which does show the catalog name in its output, but this is not parsed or returned to the caller. The DSLIST structure has no catnm field.

Proposed changes

  1. Add char catnm[45] field to struct dslist in cliblist.h
  2. Parse the catalog name from the LISTCAT output in __listc() callback and pass it through to __listds()

Alternative approaches

  • Use the CVTCATP chain to determine the responsible catalog for a dataset
  • Use the LOCATE macro return area which may contain catalog info

Motivation

mvsMF needs to return catnm in the z/OSMF-compatible dataset list API for Zowe Explorer compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions