Class DsnList


  • public class DsnList
    extends Object
    Provides list dataset and member functionality
    Version:
    2.0
    Author:
    Frank Giordano
    • Constructor Detail

      • DsnList

        public DsnList​(ZosConnection connection)
        DsnList constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • DsnList

        public DsnList​(ZosConnection connection,
                       ZoweRequest request)
                throws Exception
        Alternative DsnList constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
        Throws:
        Exception - processing error
    • Method Detail

      • 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
      • listDsnMembers

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