0

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.

dtolnay
  • 9,621
  • 5
  • 41
  • 62

2 Answers2

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:

  1. If it is a Text file (unlikely) convert the file to ascii when it is transferred off the mainframe.
  2. Convert the File to Text on the Mainframe and convert when transferring off the mainframe.
  3. Use a commercial package. Sync-Sort has DMX-h, there is also Datameer
  4. If you have Cobol copybook, look at these open source packages:
  5. JRecord could be used with a Cobol Copybook, Plain Java Code or a Xml file description 6.
Bruce Martin
  • 10,358
  • 1
  • 27
  • 38
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.