Class ZosDsnList


  • public class ZosDsnList
    extends Object
    ZosDsnList class that provides Dataset member list function
    Version:
    1.0
    Author:
    Nikunj Goyal
    • Constructor Detail

      • ZosDsnList

        public ZosDsnList​(ZOSConnection connection)
        ZosDsnList constructor
        Parameters:
        connection - connection information, see ZOSConnection object
    • Method Detail

      • listDsnMembers

        public List<String> listDsnMembers​(String dataSetName,
                                           ListParams params)
                                    throws Exception
        Get a list of members from a Dataset
        Parameters:
        dataSetName - name of a dataset (e.g. 'DATASET.LIB')
        params - list parameters, see ListParams object
        Returns:
        list of member names
        Throws:
        Exception - error processing request
      • listDsn

        public List<Dataset> listDsn​(String dataSetName,
                                     ListParams params)
                              throws Exception
        Get a list of Dataset names
        Parameters:
        dataSetName - name of a dataset (e.g. 'DATASET.LIB')
        params - list parameters, see ListParams object
        Returns:
        A String list of Dataset names
        Throws:
        Exception - error processing request