Unpacking COMP-3 digit using Record Editor/Jrecord

可紊 提交于 2019-12-02 11:52:09

First Problem you have done an EBCDIC --> ascii conversion on the file !!!!

The EBCDIC --> ascii conversion will also try and convert binary fields as well as text.

For example:

Comp-3 value   hex     hex after Ascii conversion

 400          x'400c'       x'200c'       x'40' is the ebcdic space character
                                          it gets converted to the ascii
                                          space character x'20'

You need to do binary transfer, keeping the file as ebcdic:

  1. Check the file on the Mainframe if it has a RECFM=FB you can do a transfer
  2. If the file is RECFM=VB make sure you transfer the RDW (Record Descriptor word) (or copy the VB file to a FB file on the mainframe).

Other points:

You will have to update RecordEditor/JRecord

  • The font will need to be ebcdic (cp037 for US ebcdic; for other lookup)
  • The FileStructure/FileOrganisation needs to change (Fixed length / VB)

Finally

  • BILS-Count-EDG is either 9 characters long or starts in column 85 (and is 8 bytes long).
  • You should include Xml in as text not copy a picture in.
  • In the RecordEditor if you Right click >>> Edit Record; it will show the fields as Value, Raw Text and Hex. That is useful for seeing what is going on
  • You do not seem to accept many answers; it is not relevant whether the answer solves your problem; it is whether the answer is correct answer for the question.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!