Class WriteDataset


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

      • WriteDataset

        public WriteDataset()
    • 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 WriteDataset functionality. Calls WriteDataset example methods.
        Parameters:
        args - for main not used
        Throws:
        Exception - error in processing request
      • writeToDsnMember

        public static void writeToDsnMember​(String dataSetName,
                                            String member,
                                            String content)
                                     throws Exception
        Write to the given member name specified replacing its content. If it does exist, it will be created.
        Parameters:
        dataSetName - name of a dataset where member should be located (e.g. 'DATASET.LIB')
        member - name of member to write
        content - content for write
        Throws:
        Exception - error processing request