ZosDsn

class ZosDsn(var connection: ZOSConnection, var httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

ZosDsn class that provides CRUD operations on Datasets

Constructors

Link copied to clipboard
fun ZosDsn(connection: ZOSConnection, httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Functions

Link copied to clipboard
fun createDsn(dataSetName: String, params: CreateDataset): Response<*>

Creates a new dataset with specified parameters

Link copied to clipboard
fun deleteDsn(dataSetName: String): Response<*>

Delete a dataset

fun deleteDsn(dataSetName: String, member: String): Response<*>

Delete a dataset member

Link copied to clipboard
fun getDatasetInfo(dataSetName: String): Dataset

Retrieves the information about a Dataset.

Link copied to clipboard
fun writeDsn(dataSetName: String, content: ByteArray): Response<*>

Replaces the content of an existing sequential data set with new content.

fun writeDsn(dataSetName: String, member: String, content: ByteArray): Response<*>

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.

Properties

Link copied to clipboard
Link copied to clipboard
var httpClient: OkHttpClient
Link copied to clipboard
var response: Response<*>? = null