Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for handling *ALIAS data sets #2052

Open
zFernand0 opened this issue Feb 14, 2024 · 2 comments
Open

Add support for handling *ALIAS data sets #2052

zFernand0 opened this issue Feb 14, 2024 · 2 comments
Labels
enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits Stale

Comments

@zFernand0
Copy link
Member

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 zowe/zowe-explorer-vscode#2699 (comment))

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:

  • zowe files create [alias-data-set | alias] <aliasDS> <targetDS>
    • For example: zowe files create alias USERID.PUBLIC.CNTL.ALIAS USERID.PUBLIC.CNTL
    • This will be submitting a job with a small IDCAMS statement
       //TESTSTEP JOB (IZUACCT),'USERID',CLASS=A,REGION=0M
       //STEP1    EXEC   PGM=IDCAMS
       //SYSPRINT DD     SYSOUT=A
       //SYSIN    DD     *
            DEFINE ALIAS -
                 (NAME(USERID.PUBLIC.CNTL.ALIAS) -
                 RELATE(USERID.PUBLIC.CNTL) )
       /*
    
  • zowe files delete alias <aliasDS>
    • We can add an the aliases alias-data-set | alias to the zowe files delete zfs command,
    • OR we create an entire new command definition with the same underlying API

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:

@zFernand0 zFernand0 added enhancement New feature or request new The issue wasn't triaged yet labels Feb 14, 2024
Copy link

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.

@JTonda JTonda added priority-medium Not functioning - next quarter if capacity permits and removed new The issue wasn't triaged yet labels Feb 14, 2024
Copy link

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 github-actions bot added the Stale label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits Stale
Projects
Status: Medium Priority
Development

No branches or pull requests

2 participants