copy

fun copy(params: CopyParams): Response<*>

Copy dataset or dataset member

Return

http response object

Parameters

params

contains copy dataset parameters

Throws

error processing copy request


fun copy(fromDataset: String, toDataset: String, replace: Boolean, copyAllMembers: Boolean): Response<*>

This copy method allows the following copy operations:

  • sequential dataset to sequential dataset

  • sequential dataset to partition dataset member

  • partition dataset member to partition dataset member

  • partition dataset member to partition dataset non-existing member

  • partition dataset member to sequential dataset

If copyAllMembers parameter value sent as true it will perform a copy of all members in source partition dataset to another partition dataset.

Return

http response object

Parameters

fromDataSetName

is a name of source dataset (e.g. 'SOURCE.DATASET' or 'SOURCE.DATASET(MEMBER)')

toDataSetName

is a name of target dataset (e.g. 'TARGET.DATASET' or 'TARGET.DATASET(MEMBER)')

replace

if true members in the target dataset are replaced

copyAllMembers

if true copy all members in source partition dataset specified

Throws

error processing copy request