diff --git a/packages/cli/src/zosfiles/-strings-/en.ts b/packages/cli/src/zosfiles/-strings-/en.ts index bd65b59d95..803eb27554 100644 --- a/packages/cli/src/zosfiles/-strings-/en.ts +++ b/packages/cli/src/zosfiles/-strings-/en.ts @@ -188,8 +188,8 @@ export default { DESCRIPTION: "Copy a data set.", ACTIONS: { DATA_SET: { - SUMMARY: "Copy a data set to another data set", - DESCRIPTION: "Copy a data set to another data set.", + SUMMARY: "Copy a data set/partitioned data set to another data set/partitioned data set", + DESCRIPTION: "Copy a data set/partitioned data set to another data set/partitioned data set.", POSITIONALS: { FROMDSNAME: "The name of the data set that you want to copy from", TODSNAME: "The name of the data set that you want to copy to (data set must be preallocated)" @@ -202,7 +202,8 @@ export default { EX2: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set member named 'USER.TO.SET(MEM2)'", EX3: "Copy the data set named 'USER.FROM.SET' to the data set member named 'USER.TO.SET(MEM2)'", EX4: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set named 'USER.TO.SET'", - EX5: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' and replace like-named members" + EX5: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' and replace like-named members", + EX6: "Copy the partitioned data set named 'TEST.PDS1' to the partitioned data set named 'TEST.PDS2'" } }, DATA_SET_CROSS_LPAR: { diff --git a/packages/zosfiles/src/methods/copy/Copy.ts b/packages/zosfiles/src/methods/copy/Copy.ts index 61b8e07fd0..704b18aeb8 100644 --- a/packages/zosfiles/src/methods/copy/Copy.ts +++ b/packages/zosfiles/src/methods/copy/Copy.ts @@ -113,7 +113,7 @@ export class Copy { try { const response = await List.dataSet(session, dataSetName, {attributes: true}); const dsorg = response.apiResponse.items[0].dsorg; - return dsorg === "POE" || dsorg === "PO"; + return dsorg.startsWith("PO"); } catch(error) { Logger.getAppLogger().error(error);