vscode-extension-for-zowe icon indicating copy to clipboard operation
vscode-extension-for-zowe copied to clipboard

Data set members may fail to open in binary mode

Open t1m0thyj opened this issue 1 year ago • 3 comments

Data set members cannot always be opened in binary mode depending on the contents.

The following member can be opened in binary mode (as long as there is no trailing line) because it is exactly 80 bytes long:

Hello World                                                                    $

Attempting to open the following member in binary mode results in an error:

Hello World $

Here are the attributes of the PDS:

t1m0thyj avatar Jan 30 '24 21:01 t1m0thyj

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

github-actions[bot] avatar Jan 30 '24 21:01 github-actions[bot]

Also running into this issue with allocation settings: image

adam-wolfe avatar Mar 22 '24 14:03 adam-wolfe

Discussed with @awharn and realized we could probably reuse some of the logic for opening USS nodes, to catch an error when opening a data set and fall back to binary mode: https://github.com/zowe/zowe-explorer-vscode/blob/main/packages/zowe-explorer/src/uss/ZoweUSSNode.ts#L624

t1m0thyj avatar Apr 09 '24 19:04 t1m0thyj

Closing with merge of PR linked

JillieBeanSim avatar May 08 '24 13:05 JillieBeanSim