salah
New Member
Posts: 2
|
Post by salah on May 17, 2023 23:15:48 GMT -5
Hello, First of all I would like to thank you for this amazing tool , that gives me hope !!! I m manipulation Cobol EBCDIC Binary files (Flat Files), and I followed the documentation to load the EBCDIC.Source profile . But unfortunately I'm not able to decode the file data properly , and Im still getting weird characters (see the attachment) Could you please advice me on what I m missing to read all the characters and records on the file? Thank you
|
|
|
Post by George on May 18, 2023 11:08:49 GMT -5
Salah: Not sure what you mean by "EBCDIC Binary files".
If the file contains a mix of EBCDIC character fields and Binary fields, only the character fields will be translated properly. The binary fields will be 'trashed' - that is the data would have been translated AS IF it was character data.
Basically, for a mixed file, it depends on which you want to be able to alter, the character portions or the binary portions.
If the character data, then use SOURCE EBCDIC and do not touch any of the binary fields.
If the binary data, leave SOURCE ANSI, the character data will be unreadable, but you will be able to modify the binary data.
There's no way to have it editable for both modes at the same time.
If you use SOURCE EBCDIC, make sure you use a screen font capable of displaying all 256 characters (like the Raster font available on the website). If you don't, the mixed binary data will not display properly and the character data will be shifted in column position.
George
|
|
salah
New Member
Posts: 2
|
Post by salah on May 19, 2023 7:36:46 GMT -5
Thank you very much George for your replay. Yes, in the flat file we have text characters and some binary (computed) fields.
|
|
|
Post by George on May 19, 2023 9:23:51 GMT -5
Salah: Forgot to mention this. f you view in HEX mode, the hex will display in the original EBCDIC form. e.g. a 1 will show as F1.
If you edit the hex characters, it will do all the back and forth translation to handle it properly. Well, that's what it's supposed to do, I haven't actually done this in a long time. Problems, let me know.
George
|
|