如何使用Cobol Copybook(pt1)在RecordEditor中编辑Binary Mainframe文件 [英] How do you edit a Binary Mainframe file in the RecordEditor using a Cobol Copybook (pt1)

查看:235
本文介绍了如何使用Cobol Copybook(pt1)在RecordEditor中编辑Binary Mainframe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在单记录类型二进制大型机文件>在Windows或Linux PC上使用Cobol Copybook的RecordEditor .

How do you edit a Single-Record-type Binary Mainframe file in the RecordEditor using Cobol Copybook on a Windows or Linux PC.

注意::这是尝试拆分非常广泛的

Note: This is an attempt to split a very broad question into a series of simpler Question and Answers.

推荐答案

要在中编辑文件使用Cobol Copybook的RecordEditor ,您必须首先加载该Copybook,然后编辑文件

To Edit a File in the RecordEditor with a Cobol Copybook you must first load the copybook and then edit the file

选择记录布局>>>加载Cobol Copybook 菜单选项

在Cobol加载屏幕上,输入 Cobol Copybook 和您的大型机数据文件. RecordEditor 将读取文件并尝试确定文件属性 是.

On the Cobol Load Screen enter the Cobol Copybook and your Mainframe Data file. The RecordEditor will read the file and try and work out what the file attributes are.

重要属性

  • 拆分抄本:对单个记录类型文件使用不拆分
  • 字体(或字符集/编码),您需要为文件输入适当的编码. Cp037(或IBM037)是US-EBCDIC,CP273(或(IBM273)是德国EBCDIC.
  • Cobol方言 IBM Mainframe cobol大型机
  • 文件结构,它对应于大型机上的RECFM属性.
    • 固定长度二进制文件用于RECFM = FB
    • 大型机VB(基于rdw)二进制文件用于RECFM = VB
    • Split Copybook: use No Split for a Single record type file
    • Font (or Charset / encoding) You need to enter the appropriate encoding for the file. Cp037 (or IBM037) is US-EBCDIC, CP273 (or (IBM273) is German EBCDIC.
    • Cobol Dialect Mainframe for IBM Mainframe cobol
    • File Structure This corresponds RECFM attribute on the Mainframe.
      • use Fixed Length Binary for RECFM=FB
      • use Mainframe VB (rdw based) Binary for RECFM=VB

      RecordEditor 会尝试使用当前属性的右手边显示文件. 屏幕.您可以使用属性.

      The RecordEditor will try display the file using the current attributes on the Righthand side of the screen. You can play around with attribute.

      如果无法正确显示文件,则可能是错误 Cobol Copybook. 您必须使用与数据完全匹配的 Cobol Copybook ,足够近的距离永远不会足够好.

      If you can not get the file display correctly, you could have the wrong Cobol Copybook. You must use a Cobol Copybook that matches the data exactly, near enough is never good enough.

      一旦加载了字帖,请转到打开文件"屏幕.

      Once you have loaded you copybook, go to the Open files screen.

      ....

      • 选择您的数据文件
      • 记录布局字段
      • 中选择您的抄写本
      • 单击编辑(返回键也应起作用).
      • Select you data file
      • select you copybook in the Record Layout field
      • Click on on Edit (The return key should also work).

      要生成 Java〜JRecord 代码以读取文件,请选择 Generate >>>为Cobol生成Java〜JRecord代码.

      To generate Java~JRecord Code to read the file select Generate >>> Generate Java~JRecord code for Cobol.

      第一个屏幕与导入Cobol抄写本屏幕基本相同.这

      The first screen is basically the same as the Import Cobol Copybook screen. This answer has details on generating Java code

      这篇关于如何使用Cobol Copybook(pt1)在RecordEditor中编辑Binary Mainframe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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