Class DsnWrite


  • public class DsnWrite
    extends Object
    Provides write dataset and member functionality
    Version:
    4.0
    Author:
    Leonid Baranov, Frank Giordano
    • Constructor Detail

      • DsnWrite

        public DsnWrite​(ZosConnection connection)
        DsnWrite Constructor
        Parameters:
        connection - for connection information, see ZosConnection object
    • Method Detail

      • write

        public Response write​(String dataSetName,
                              String memberName,
                              String content)
                       throws ZosmfRequestException
        Replaces the content of a member of a partitioned data set (PDS or PDSE) with new content. A new dataset member will be created if the specified dataset member does not exist.
        Parameters:
        dataSetName - dataset name of where the member is located (e.g. 'DATASET.LIB')
        memberName - name of member to add new content
        content - new content
        Returns:
        http response object
        Throws:
        ZosmfRequestException - request error state
      • write

        public Response write​(String dataSetName,
                              String content)
                       throws ZosmfRequestException
        Replaces the content of an existing sequential data set with new content.
        Parameters:
        dataSetName - sequential dataset (e.g. 'DATASET.LIB')
        content - new content
        Returns:
        http response object
        Throws:
        ZosmfRequestException - request error state