There is nothing like /n in ebcdic. There is no support for new line in ebcdic. How should I convert that like. There is no delimiter in ebcdic. So while converting this file. How shall I know that new line has come? Suggestions please.
Asked
Active
Viewed 1,387 times
2 Answers
0
Actually there is a new-line character (x'15'). Normal ZOS files do not use the New-Line character. ZOS is built around Fixed-Width, VB, VSAM etc files.
Options include:
- If it is a Text file (unlikely) convert the file to ascii when it is transferred off the mainframe.
- Convert the File to Text on the Mainframe and convert when transferring off the mainframe.
- Use a commercial package. Sync-Sort has DMX-h, there is also Datameer
- If you have Cobol copybook, look at these open source packages:
- JRecord could be used with a Cobol Copybook, Plain Java Code or a Xml file description 6.

Bruce Martin
- 10,358
- 1
- 27
- 38
-
Thank you soo much.. But I also wanted to know how to handle dynamic arrays – tejas bharambe Dec 03 '16 at 15:56
-
By dynamic arrays do you mean `variable sized Cobol Arrays` (Cobol occurs depending) ??? – Bruce Martin Dec 03 '16 at 22:30
0
A new line in EBCDIC is usually formed from the carriage-return character (hex 0D) and line-feed (hex 25). In ASCII carriage-return is also hex 0D but the line-feed character needs to be converted to hex 0A. Hope this helps.

Shady Dave
- 1
- 1