copyToDataset

@PUT(value = "/zosmf/restfiles/ds/{to-data-set-name}")
abstract fun copyToDataset(@Header(value = "Authorization") authorizationToken: String, @Header(value = "X-IBM-BPXK-AUTOCVT") xIBMBpxkAutoCvt: XIBMBpxkAutoCvt? = null, @Header(value = "X-IBM-Migrated-Recall") xIBMMigratedRecall: MigratedRecall? = null, @Body body: CopyDataZOS.CopyFromDataset, @Path(value = "to-data-set-name") toDatasetName: String): Call<Void>

Copy from - to

SEQ ->SEQ

PDS MEMBER ->SEQ (overwrites content)

PDS MEMBER or MEMBERS ->PDS (adds or replaces)


@PUT(value = "/zosmf/restfiles/ds/-({to-volser})/{to-data-set-name}")
abstract fun copyToDataset(@Header(value = "Authorization") authorizationToken: String, @Header(value = "X-IBM-BPXK-AUTOCVT") xIBMBpxkAutoCvt: XIBMBpxkAutoCvt? = null, @Header(value = "X-IBM-Migrated-Recall") xIBMMigratedRecall: MigratedRecall? = null, @Body body: CopyDataZOS.CopyFromDataset, @Path(value = "to-volser") toVolser: String, @Path(value = "to-data-set-name") toDatasetName: String): Call<Void>

Volser for uncatalogued datasets

Copy from - to

SEQ ->SEQ

PDS MEMBER ->SEQ

PDS MEMBER or MEMBERS ->PDS