Class DsnCreate


  • public class DsnCreate
    extends Object
    Provides create dataset and member functionality
    Version:
    2.0
    Author:
    Leonid Baranov, Frank Giordano
    • Constructor Detail

      • DsnCreate

        public DsnCreate​(ZosConnection connection)
        DsnCreate Constructor
        Parameters:
        connection - connection information, see ZOSConnection object
      • DsnCreate

        public DsnCreate​(ZosConnection connection,
                         ZoweRequest request)
                  throws Exception
        Alternative DsnCreate 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

      • create

        public Response create​(String dataSetName,
                               CreateParams params)
                        throws Exception
        Creates a new dataset with specified parameters
        Parameters:
        dataSetName - name of a dataset to create (e.g. 'DATASET.LIB')
        params - create dataset parameters, see CreateParams object
        Returns:
        http response object
        Throws:
        Exception - error processing request