Skip to content

Cannot open spool files with the same DD name in different steps #2279

@deltatager

Description

@deltatager

Describe the bug

After running a JCL with multiple steps containing the same DD names, you can only view one of the spool files with that DD name because the extension gives the same name to the local file.

The local file name is generated as ${spool.jobname}.${spool.jobid}.${spool.ddname}, meaning that two DD cards with the same name, in different steps, will result is the same file name being generated

When trying to open the second spool file with the same name, the first one is showed. It is very common to have many SYSPRINT DD in a single JCL.

To Reproduce

  1. Run a JCL with at least two steps sending a DD with the same name to SYSOUT
    image
image
  1. Open the first SYSUT2 spool file
image
  1. Open the second SYSUT2 spool file. The content of the first SYSUT2 will be shown, because they have the same local file name
image

Expected behavior

The content of the second spool file should be displayed, and the file names shoud be unique for each step

Desktop (please complete the following information):

  • OS: Windows 10
  • Zowe Explorer Version: v2.8.0
  • (Optional) Zowe CLI Version7.14.0
  • (Optional) Are you using Secure Credential Store? No

Additional context

When the spool is downloaded using the 'Download all' context menu option, the content of the files show properly
image

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions