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

Explicitly identify when a dataset is cataloged but does not exist #175

Open
bohns opened this issue Sep 2, 2020 · 1 comment
Open

Explicitly identify when a dataset is cataloged but does not exist #175

bohns opened this issue Sep 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@bohns
Copy link

bohns commented Sep 2, 2020

Is your feature request related to a problem? Please describe.

If zOSMF ds operation encounters a z/OS dataset that is cataloged but doesn't exist on disk, it returns the following:

{"dsname":"IBMUSER.SYSPLEX.JCL","catnm":"CATALOG.Z24B.MASTER","dev":"3390","migr":"NO","mvol":"N","vol":"WORK01"}

... which the Zowe data-sets API maps to:

{"name":"IBMUSER.SYSPLEX.JCL","deviceType":"3390","migrated":false,"catalogName":"CATALOG.Z24B.MASTER"}

User code must check to see if the volumeSerial attribute is missing in order to detect this condition.

The API should explicitly indicate that the dataset is cataloged but does not exist on the specified disk.

Describe the solution you'd like

I suggest adding an attribute mapping of "datasetExists" (True/False) and include this in the API result.

@bohns bohns added the enhancement New feature or request label Sep 2, 2020
@bohns
Copy link
Author

bohns commented Sep 2, 2020

Addendum: This is the TSO output from zOSMF when a list of datasets includes one that doesn't exist on disk:

[09:18:59.747426] ServletDispatcher[I]: Received request: GET /ds?dslevel=ibmuser
[09:18:59.760612] ServletDispatcher[I]: z/OSMF transaction: tx000000000001735D
[09:18:59.761557] ServletDispatcher[I]: Invoking Servlet: SELECT PGM(IZUGLSDS) PARM(-LI,t -q 327744 -r 0x204f4028 )
[09:19:00.494136] ListDatasetsServlet[W]: DSINFO ERROR, dsname = IBMUSER.SYSPLEX.JCL information not found
[09:19:00.861413] ServletDispatcher[I]: Servlet IZUGLSDS completed, RC=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant