record - How do you edit a Binary Mainframe file in the RecordEditor using a Cobol Copybook (pt1) -


how edit single-record-type binary mainframe file in recordeditor using cobol copybook on windows or linux pc.

note: attempt split broad question series of simpler question , answers.

to edit file in recordeditor cobol copybook must first load copybook , edit file

loading cobol copybook recordeditor

select record layouts >>> load cobol copybook menu options

enter image description here

enter image description here

on cobol load screen enter cobol copybook , mainframe data file. recordeditor read file , try , work out file attributes are.

enter image description here

the important attributes

  • split copybook: use no split single record type file
  • font (or charset / encoding) need enter appropriate encoding file. cp037 (or ibm037) us-ebcdic, cp273 (or (ibm273) german ebcdic.
  • cobol dialect mainframe ibm mainframe cobol
  • file structure corresponds recfm attribute on mainframe.
    • use fixed length binary recfm=fb
    • use mainframe vb (rdw based) binary recfm=vb

the recordeditor try display file using current attributes on righthand side of screen. can play around attribute.

enter image description here

if can not file display correctly, have wrong cobol copybook. must use cobol copybook matches data exactly, near enough never enough.


viewing (editting file)

once have loaded copybook, go open files screen.

....

  • select data file
  • select copybook in record layout field
  • click on on edit (the return key should work).

generating java code read file.

to generate java~jrecord code read file select generate >>> generate java~jrecord code cobol.

the first screen same import cobol copybook screen. answer has details on generating java code


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -