zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
108 stars 85 forks source link

Add support for handling `*ALIAS` data sets #2052

Closed zFernand0 closed 1 month ago

zFernand0 commented 4 months ago

Is your feature or enhancement request related to a problem or limitation? Please describe

Today, the SDKs and the CLI have a hard time fully supporting alias datasets. This is partially due to a z/OSMF limitation on how aliases are handled over the /zosfiles REST APIs. See how the CLI and SDKs handle most CRUD operations: (see details in https://github.com/zowe/vscode-extension-for-zowe/issues/2699#issuecomment-1942784425)

Describe your enhancement idea

Since alias data sets have a volume of *ALIAS, we can attempt to handle creation and deletion a bit differently. Consider the following commands:

Describe alternatives you've considered

Recommend people to submit their own IDCAMS to create aliases, and use the zowe files del zfs to delete them

Provide any additional context

Please see the contents of the comment below for more details:

github-actions[bot] commented 4 months ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 1 month ago

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further.

PowderPop commented 1 week ago

I feel like Aliases used to work, but have recently stopped. I occasionally create datasets with a prefix to allow sharing, but then create an Alias to follow more regular (userid based conventios) e.g. HLQ.PUBLIC.EXEC is aliased as HLQ.USERID.EXEC. But when I try to open HLQ.USERID.EXEC it fails thinking it's binary! It should lookup the alias and proceed to open the related (root) dataset.

zFernand0 commented 1 week ago

Hey @PowderPop, Read and write operations on aliases should still work from the CLI. The only thing that the CLI does not properly handle (unless users do this with their own JCL) is to create and delete aliases. For more details on what's supported from the CLI and Zowe Explorer perspective, see the comment below: