在没有副本的情况下在RecordEditor中编辑大型机文件 [英] Edit a Mainframe file in the RecordEditor without a copybook

查看:131
本文介绍了在没有副本的情况下在RecordEditor中编辑大型机文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在编辑(二进制EBCDIC)大型机文件. rel ="nofollow noreferrer"> RecordEditor 没有 Cobol抄写本.

How do you Edit a (binary EBCDIC) Mainframe file in the RecordEditor with out a Cobol Copybook.

如何使用 RecordEditor 生成Java代码以读取文件..

How do you generate Java code to read the file using the RecordEditor.

注意::这是尝试将

Note: This is an attempt to split a question that is far to broad to give meaningful answer to into a series of simpler Question and Answer's.

推荐答案

尝试并避免尽可能使用Cobol Copybook编辑二进制文件.只能尝试将此方法作为不得已 !!!

Try and avoid editing a binary file with a Cobol Copybook if at all possible. This should only be attempted as a last resort !!!.

尝试获得 该文件的 Cobol抄写本(或某些字段布局文档)!

Try and get that Cobol copybook (or some field layout document) for the file !!!

一些一般性建议:

  • 处理记录中的10/20字段是可行的,但如果记录中有成千上万个字段,则不是.
  • 花点时间不要着急.在继续进行之前,尝试使每个步骤正确无误
  • 最后升级到最新版本的 RecordEditor (当前为0.98.4)
  • 此过程也适用于普通文本文件
  • It is feasible when dealing with 10 / 20 fields in a record but not if there a thousands of fields in a Record.
  • Take your time do not rush the process. Try and get each step correct before moving on
  • Finally upgrade to the latest version of the RecordEditor (currently 0.98.4)
  • This process will also work for normal Text file as well

要启动该向导,请选择选项记录布局>>>布局向导.

To start the wizard select option Record Layouts >>> Layout Wizard.

文件结构屏幕有3个用途:

The file structure screen has 3 purposes:

  • 获取文件结构-可以是固定宽度,VB,Windows/Unix文本文件
  • 获取记录长度(如果是固定宽度的文件).
  • 获取字体(字符集/编码)

RecordEditor 将尝试为您解决这个问题

The RecordEditor will try and work this out for you

RecordEditor 将尝试确定字段的开始和结束位置,但 这不是完美的.您需要仔细检查更正其选择

The RecordEditor will try and work out where fields start and end but it is not perfect. You need to carefully check and correct its choices

在此屏幕上,字段以其他颜色

  • 您通过单击创建/删除字段
  • 使用清除字段按钮清除所有字段
  • 您可以使用各个复选框更改要搜索的字段类型(例如,主机区域小数)
  • 添加字段将进行另一个字段搜索
  • you create/delete a field by clicking on
  • use the Clear Fields button clear all the fields
  • you can change what field-types to search for using the various check box's (e.g. Mainframe Zones Decimal)
  • The Add Fields will do another field search

在此屏幕上,定义字段名称和类型.您可能需要返回字段选择屏幕"以调整字段

On this screen you define the field names and Types. You may need to go back to the **Field Selection Screen* to adjust the fields

一旦定义了Record Layout,就可以在打开的文件屏幕上使用

Once the Record Layout has been defined, it can be used on the open file screen

编辑文件时,可以生成 java〜JRecord 代码以读取文件 通过选择 Generate >>> Java >>> ... .

When editing your file, you can generate java~JRecord code to read the file by selecting Generate >>> Java >>> ....

您可以输入package-id +生成选项:

You can the enter a package-id + generate options:

最后生成示例Java代码以读取/写入 文件.

and finally your sample java code is generated to read / write the file.

这篇关于在没有副本的情况下在RecordEditor中编辑大型机文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆