Skip to content

Crash in Create.dataSetValidateOptions validating dirblk #2893

Description

@CBforZ

Describe the bug

Issue the command: zowe zos-files create data-set "example.data.set" --dst pds --dt 3390 --db 15 --rf fb --rl 80 --sz 25trk --sc tso
Expected and actual results
Expected: the command would work or give a clear error about misconfigured options

Actual:
Unable to perform this operation due to the following problem:
Cannot read properties of undefined (reading 'startsWith')
Not sure if we should be defaulting a value to dsorg here but at least the command should have a better error if the options are invalid

Adding a quick debug log to investigate: I see this :

   case "dirblk":
                        // Validate non-zero if dsorg starts with "PS"
                        console.log("todo: tempOptions dsorg: " + tempOptions.dsorg);

Prints:

todo: tempOptions dsorg: undefined

Describe your environment

CLI Version: 8.36.1
Zowe Release Version: v3.6.0
Additional context

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions