Class ListDatasets


  • public class ListDatasets
    extends ZosConnection
    Class example to showcase ListDatasets functionality.
    Version:
    1.0
    Author:
    Leonid Baranov
    • Constructor Detail

      • ListDatasets

        public ListDatasets()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Main method defines z/OSMF host and user connection and other parameters needed to showcase ListDatasets functionality. Calls ListDatasets example methods.
        Parameters:
        args - for main not used
        Throws:
        Exception - error processing request
      • listMembers

        public static void listMembers​(ZOSConnection connection,
                                       String dataSetName)
                                throws Exception
        List out all members of the given data set
        Parameters:
        connection - ZOSConnection object
        dataSetName - data set name
        Throws:
        Exception - error processing request
      • listDsn

        public static void listDsn​(ZOSConnection connection,
                                   String dataSetName)
                            throws Exception
        List out all data sets of the given data set. Each dataset returned will contain all of its properties.
        Parameters:
        connection - ZOSConnection object
        dataSetName - data set name
        Throws:
        Exception - error processing request
      • listDsnVol

        public static void listDsnVol​(ZOSConnection connection,
                                      String dataSetName)
                               throws Exception
        List out all data sets of the given data set. Each dataset returned will contain its volume property.
        Parameters:
        connection - ZOSConnection object
        dataSetName - data set name
        Throws:
        Exception - error processing request