UNPKG

@zowe/cli

Version:

Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.

33 lines 910 B
"use strict"; /* * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v2.0 which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v20.html * * SPDX-License-Identifier: EPL-2.0 * * Copyright Contributors to the Zowe Project. * */ Object.defineProperty(exports, "__esModule", { value: true }); /** * Converts the name of a data set to an IDataSet * @param {string} name - the name in the form USER.DATA.SET | USER.DATA.SET(mem1) */ function getDataSet(name) { const match = name.match(/(.*)\((.*)\)/); if (match) { const [, dataSetName, memberName] = match; return { dataSetName, memberName, }; } else { return { dataSetName: name, }; } } exports.getDataSet = getDataSet; //# sourceMappingURL=ZosFiles.utils.js.map