读取 COBOL DAT 文件

发布于 2024-07-05 19:50:16 字数 214 浏览 6 评论 0原文

我得到了一组 COBOL DAT、IDX 和 KEY 文件,我需要读取其中的数据并将其导出到 Access、XLS、CSV 等。我不知道 COBOL 代码的版本、供应商,因为我只知道有创建这些文件的 Windows 可执行文件。

我尝试过 Easysoft 和 Parkway ODBC 驱动程序,但未能成功从文件中读取数据。

由于分发该产品的公司已关闭,我无法访问源代码。

I have been given a set of COBOL DAT, IDX and KEY files and I need to read the data in them and export it into Access, XLS, CSV, etc. I do not know the version, vendor of the COBOL code as I only have the windows executable that created the files.

I have tried Easysoft and Parkway ODBC drivers but I have not been successful in reading the data from the files.

I do not have access to the source code as the company that was distributing this product shut down.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

你怎么这么可爱啊 2024-07-12 19:50:16

几种可能性。

1/ 看看你是否能找到该公司工作人员的姓名。 他们可能会有所帮助。

2/ 在文本编辑器中打开 DAT 文件。 数据可以从中解码。 如果可以识别基本格式,则可以编写快速的代码来提取它。

3/ 在编辑器中打开可执行文件,其中可能有字符串指示使用了哪个编译器,然后您可以搜索有关其文件格式的信息。 如果它是 DOS 应用程序,则很可能是 Microsoft 或 Fujitsu COBOL。

4/ 考虑在 elance 或rentacoder 等工作网站上提出工作请求; 我认为如果工作不能成功完成,就不会有成本。

5/ 雇人检查并就恢复的可能性提出建议。

6/ 获取每个活动记录的记录内容的屏幕转储,并据此重新构建它。

其中一些非常困难,因此您的里程可能会有所不同。

祝你好运。

A few possibilities.

1/ See if you can find the names of the people that worked for the company. They may be helpful.

2/ Open the DAT file in a text editor. The data may be decodable from that. If the basic format can be discerned, quick'n'dirty code can be written to extract it.

3/ Open up the executable in an editor, there may be strings in there that indicate which compiler was used, then you can search for info on its file formats. If it's a DOS application, there's a good chance it was either Microsoft or Fujitsu COBOL.

4/ Consider placing job requests on work sites like elance or rentacoder; I don't think there's a cost if the work can't be done successfully.

5/ Hire someone to examine it and advise on the likelihood of recovery.

6/ Get a screen dump of the record contents for every active record and re-construct it from that.

Some of these are pretty hard so your mileage may vary.

Good luck.

妞丶爷亲个 2024-07-12 19:50:16

我已经使用 http://www.cobolproducts.com/datafile 成功读取了一些 dat 文件现在我是通过另一个论坛了解到的。 我很可能会与他们合作,帮助我阅读我遇到问题的其余文件。

I have successfully read some of the dat files using http://www.cobolproducts.com/datafile just now which I came to know through another forum. Most probably I will work with them to help me read the rest of the files that I am having an issue with.

若水微香 2024-07-12 19:50:16

对于经历这个旅程的任何人,我在sourceforge中找到了这个:Cobol和RPG数据阅读器和转换器

http://sourceforge。 net/projects/cobol2j/

我正要尝试一下,听起来很有希望

for anyone going through this journey, I found this in sourceforge: Cobol and RPG data reader and converter

http://sourceforge.net/projects/cobol2j/

Im about to try it, sounds kind of promising

素食主义者 2024-07-12 19:50:16

我仅使用 FD 读取 COBOL DAT 文件,当我没有 FD 时,我在文本编辑器中打开该文件,并尝试猜测列,然后重试,直到我可以正常工作,这种方法的大问题当 DAT 文件有 COMP 列时,可以是任何类型的 COMP 类型,但只要有一点耐心,我就能完成这项工作。

我曾尝试过 Parkway ODBC,但没有成功。

I have read COBOL DAT files only with FD, when I do not have the FD, I open the file in a Text Editor, and try to guess the columns, and try again, until I have this working, the big problem with this approach is when the DAT file have COMP columns, that can be any kind of COMP type, but with a litthe patience I cold get this done.

I had tryed Parkway ODBC, but without success.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文