Package examples.zosfiles
Class WriteDataset
- java.lang.Object
-
- examples.ZosConnection
-
- examples.zosfiles.WriteDataset
-
public class WriteDataset extends ZosConnection
Class example to showcase WriteDataset functionality.- Version:
- 1.0
- Author:
- Leonid Baranov
-
-
Field Summary
-
Fields inherited from class examples.ZosConnection
hostName, password, userName, zosmfPort
-
-
Constructor Summary
Constructors Constructor Description WriteDataset()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Main method defines z/OSMF host and user connection and other parameters needed to showcase WriteDataset functionality.static voidwriteToDsnMember(String dataSetName, String member, String content)Write to the given member name specified replacing its content.
-
-
-
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 writecontent- content for write- Throws:
Exception- error processing request
-
-