diff --git a/packages/zowe-explorer/src/dataset/actions.ts b/packages/zowe-explorer/src/dataset/actions.ts index 43edd035f..86fc74d87 100644 --- a/packages/zowe-explorer/src/dataset/actions.ts +++ b/packages/zowe-explorer/src/dataset/actions.ts @@ -1357,8 +1357,8 @@ export async function hMigrateDataSet( if (Profiles.getInstance().validProfile !== api.ValidProfileEnum.INVALID) { const { dataSetName } = dsUtils.getNodeLabels(node); try { - const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hMigrateDataSet(dataSetName); api.Gui.showMessage(localize("hMigrateDataSet.requestSent", "Migration of data set {0} requested.", dataSetName)); + const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hMigrateDataSet(dataSetName); datasetProvider.refreshElement(node.getParent()); return response; } catch (err) { @@ -1386,8 +1386,8 @@ export async function hRecallDataSet( if (Profiles.getInstance().validProfile !== api.ValidProfileEnum.INVALID) { const { dataSetName } = dsUtils.getNodeLabels(node); try { - const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hRecallDataSet(dataSetName); api.Gui.showMessage(localize("hRecallDataSet.requestSent", "Recall of data set {0} requested.", dataSetName)); + const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hRecallDataSet(dataSetName); datasetProvider.refreshElement(node.getSessionNode()); return response; } catch (err) {