Package examples.zosfiles
Class ListDatasets
- java.lang.Object
-
- examples.ZosConnection
-
- examples.zosfiles.ListDatasets
-
public class ListDatasets extends ZosConnection
Class example to showcase ListDatasets functionality.- Version:
- 1.0
- Author:
- Leonid Baranov
-
-
Field Summary
-
Fields inherited from class examples.ZosConnection
hostName, password, userName, zosmfPort
-
-
Constructor Summary
Constructors Constructor Description ListDatasets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
listDsn(ZOSConnection connection, String dataSetName)
List out all data sets of the given data set.static void
listDsnVol(ZOSConnection connection, String dataSetName)
List out all data sets of the given data set.static void
listMembers(ZOSConnection connection, String dataSetName)
List out all members of the given data setstatic void
main(String[] args)
Main method defines z/OSMF host and user connection and other parameters needed to showcase ListDatasets functionality.
-
-
-
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 objectdataSetName
- 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 objectdataSetName
- 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 objectdataSetName
- data set name- Throws:
Exception
- error processing request
-
-