-
Notifications
You must be signed in to change notification settings - Fork 100
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
Support viewing of VB binary records in HEX #1135
Comments
hi @hammyau - Can you share an example? You mentioned binary files but also mentioned needed to understanding the record format. What RECFM is used for these files on z/OS? You can download binary files with zowe CLI, e.g. However, the rendered characters will no be EBCDIC (the same in ISPF). |
I am not sure that editing data files in Zowe Explorer is a good idea, for the following reasons:
For the browse, even the edit, of data files, I think that Zowe Explorer should cooperate with an agent on the host:
This agent on the host could be hosted in Zowe Server (which would give Zowe Server an interest, because with the use of VS Code and the various extensions, I can't find any reason to deploy Zowe Server). |
Thanks Dennis, I do think it will be a big task. |
I agree that for full edit functionality it is not a good idea to do it with Zowe explorer but do it with ISPF isn't either and that for the exact same reasons. |
So downloading dataset using 'record' instead of 'binary' and creating a hex viewer/editor that uses the preceding number of bytes following to determine records boundaries and translates the right codepage ( known from profile ) might do the job. |
Yes we will need the record lengths. As part of our project I have written code that parses the record layouts of our VB data sets. These are processed after FTP'ing them to my PC. On the PC the key is to FTP with the -RDW option to preserve the record descriptor word. Then I basically read 2 bytes to get the record length, read the remaining bytes for that record and repeat. Where in the chain of events this happens between requesting to browse/edit a binary file via Zowe explorer and it being displayed I'm not sure. Having VSCode do the work may be too much for a large file. Unless we do something clever with the window of what is being displayed. I can write a program that will do the conversion work for display. And then just have the VSCode display it. It could even edit it and I can have my converter write it back again. But that will all be separate from Zowe. I would have though it could be integrated in some way. |
z/OSMF has a header to limit record retrieval ( X-IBM-Record-Range ), even has header to obtain enq. Zowe explorer already uses z/OSMF to retrieve the dataset so I suppose it shouldn't be to hard to fully exploit these headers. |
For large datasets the headers might be handy to limit bandwith. z/OSMF adds continuously new functionality ... headers to search, filter, return a range of records, ... Someone with Zowe Explorer development skills should have a look at them to discover new possibilities. I think Zowe Explorer should definitly follow this evolution. |
An interesting workaround for this was supplied by a colleague of mine. This works as a way of examining binary files in hex. But editing them. That will still have to fall back to ISPF. Attached some example JCL. |
This enhancement has had no community activity for 12 months. The issue also has less than 10 up-votes by the community. No action on this enhancement is targeted for the next 2 calendar quarters. Therefore, this enhancement is being closed. If you feel that this enhancement should continue to be available for community up-votes, you may reopen this issue. |
Zowe Explorer does not support viewing of binary files. Unless I am missing something.
I would like to be able to see my record based files and view them in hex.
Like ISPF browse or view. And switching to hex mode.
I can simply download a data set via FTP and use Vi or Notepad ++ or VS code. And its hex viewer.
But none of these understand the record format.
I believe I can transfer them via the Zowe CLI. But I have not tried. To me that would just be the same as using FTP.
I realize this will be quite an effort? I have looked through some of the code. And not quite sure how it would fit in.
I like Zowe Explorer, but without this feature it will be of limited use to my colleagues and I.
The text was updated successfully, but these errors were encountered: