问题描述
如何使用任何Java API或开源工具将包含cobol copybook作为记录布局信息的大型机二进制文件(EBCDIC)转换为包含打包和分区十进制格式的文件?
用Java读取
如果你想在java中读取Mainframe Cobol文件,请看看
-
注意:我是JRecord / RecordEditor的作者
How can I convert a mainframe binary file (EBCDIC) having cobol copybook as record layout information to ASCII file by keeping in mind regarding the packed and zoned decimal format using any Java API or Open source tool?
解决方案Reading in Java
If you want to Read Mainframe Cobol Files in java, have a look at
- JRecord - You will have to specify the charset (font). For US EBCDIC use CP037.
- Legstar - Have variety of Mainframe - Cobol Tools
- CB2java - Has not been updated in a while (not supported any more and has problems)
Also the RecordEditor will let you view / Edit Mainframe Cobol Files
Conversion Utilities
For simple Cobol files these conversion utilities (based on JRecord) could be used:
RecordEditor
The RecordEditor has a Generate option for generating Java / JRecord code.See RecordEditor Code Generation notes
Note: I am the author of JRecord/RecordEditor
这篇关于使用任何开源代码或工具将Mainframe Binary转换为Ascii的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!