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

Editor in hexadecimal dump mode with EBCDIC interpretation #1590

Open
FALLAI-Denis opened this issue Nov 25, 2021 · 8 comments
Open

Editor in hexadecimal dump mode with EBCDIC interpretation #1590

FALLAI-Denis opened this issue Nov 25, 2021 · 8 comments
Labels
community-upvoted enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits

Comments

@FALLAI-Denis
Copy link

FALLAI-Denis commented Nov 25, 2021

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

Editing of mvs data sets, or uss files, which are not "plain text" (binary data, packed decimal, etc.).

Describe the solution you'd like

In addition to request #1589, Not all mvs data sets necessarily use the same ccsid, I suggest that Zowe Explorer provide a specialized editor that would display a file in "hex dump" mode rather than "text" mode, after having transferred the file without conversion from the z/OS server ; transfer in "record mode" (not binary), to preserve the end of lines.

Like the Microsoft Hex Editor extension, this editor would display the hexadecimal values of the bytes of the file, and an interpretation as characters, but with an EBCDIC ccsid, either the ccsid declared in the Zowe CLI profile, or a ccsid chosen by the user.

This editor could also use the usual presentation of the ISPF/PDF editor in "hex" mode: presentation of records in hexadecimal mode with interpretation of the character above.

This editor would be automatically opened after a transfer without conversion, (ccsid=0).

@FALLAI-Denis FALLAI-Denis added the enhancement New feature or request label Nov 25, 2021
@github-actions
Copy link

Thank you for raising this issue.
The community has 30 days to upvote 👍 the issue.
If it receives 10 upvotes, we will move it to our backlog. If not, we will close it.

@giteeup12
Copy link

Hi - is there any update to this? I am having the same issue transferring mainframe source (which contains embedded hex ) to Git

@RichardSGFR
Copy link

Hello, we have the same needs in our company. It would be usefull to be able when browsing or editing a dataset to be able to view/edit the hex value of each characters with the hex value being the hex value on the mainframe and not after conversion to ASCII.

this would ease updating COMP value which are not readable in decimal.

@giteeup12
Copy link

Yes, it would be helpful if git displayed hexadecimal values.

@giteeup12
Copy link

We also have other hex/binary values in files. Could a feature be added to dispplay that information in Git?

@FALLAI-Denis
Copy link
Author

FALLAI-Denis commented May 12, 2024

We also have other hex/binary values in files. Could a feature be added to dispplay that information in Git?

Hi,

Zowe Explorer is not designed to deal with Git repositories but to deal with MVS data sets and USS files, and view / edit them locally in VS Code (or equivalent).

If you need to manage hex values in file with Git, you need to declare them in .gitattributes as binary file to avoid conversion.

If you have source code file with hex values, (COBOL, Assembler, ISPF panels...), you must escape hex values to convert them to displayable and convertible characters from EBCDIC to ASCII / UTF8 and vice versa.

The tool to manage files in Git repositories can be IBM Z Open Editor, see IBM/zopeneditor-about#183.

@giteeup12
Copy link

Thanks. Does COBOL have escape characters?

@FALLAI-Denis
Copy link
Author

FALLAI-Denis commented May 12, 2024

Thanks. Does COBOL have escape characters?

Yes, use x'hh' for hexadecimal characters: https://www.ibm.com/docs/en/cobol-zos/6.4?topic=literals-hexadecimal-notation-alphanumeric

Can also use "symbolic characters": https://www.ibm.com/docs/en/cobol-zos/6.4?topic=section-symbolic-characters-clause

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-upvoted enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits
Projects
Status: Medium Priority
Development

No branches or pull requests

5 participants