Skip to content
New issue

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

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

Already on GitHub? # to your account

zos.dslist returning 3 states #493

Open
Martin-Zeithaml opened this issue Sep 27, 2024 · 0 comments
Open

zos.dslist returning 3 states #493

Martin-Zeithaml opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working new not yet triaged

Comments

@Martin-Zeithaml
Copy link
Contributor

static JSValue zosDatasetInfo(JSContext *ctx, JSValueConst this_val,

Empty string "" returning null

zos.dslist()=null

Invalid parameter/wrong DSN returning empty object

zos.dslist(null)={"datasets":[]}
zos.dslist(undefined)={"datasets":[]}
zos.dslist(0)={"datasets":[]}
zos.dslist(apple,banana,orange)={"datasets":[]}
zos.dslist(false)={"datasets":[]}

Valid DSN not uppercased returning empty object

zos.dslist(sys1.maclib)={"datasets":[]}

Valid DSN example

zos.dslist(SYS1.PARMLIB)={"datasets":[{"dsn":"SYS1.PARMLIB","entryType":"A"}]}
zos.dslist(SYS1.MACLIB)={"datasets":[{"dsn":"SYS1.MACLIB","entryType":"A"}]}
@Martin-Zeithaml Martin-Zeithaml added bug Something isn't working new not yet triaged labels Sep 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working new not yet triaged
Projects
None yet
Development

No branches or pull requests

1 participant