Menu

#10 Open File overriding loaded copybook file structure

v1.0_(example)
open
nobody
None
5
2017-07-21
2017-07-19
Anonymous
No

I used the Load Cobol Copybook utility to load a VB file including Block Length through . The Load Cobol Copybook file view worked as expected and I loaded the copybook. After I go to view a file using the Open File, the open file overrides the File Structure and opens the file as a VB (rdw included) Binary file instead of the VB including Block Length so the file is off by the first 4 bytes. I had another file with the VB including Block Length working correctly. Any suggestions on what is causing the issue on this file?

1 Attachments

Discussion

  • Bruce Martin

    Bruce Martin - 2017-07-20

    I would guess that the file that the RecordEditor is failing on is fairly small < 32kb and the file it worked for was larger (or possibly had more records ???) can you confirm this ???

    Posible solutions:

    • Short term only Override VB & VB-With-Block length when invalid.
    • Long term: Add a flag on the Layout-Definition on wether to allow FileStructure overrides.

    If you can share the problem file it might be usefull, if not assuming my guess is correct, I can probably create a problem file.

     
  • Bruce Martin

    Bruce Martin - 2017-07-20

    Looks like I guessed wrongly, I have not been able to recreate the problem; I will probably need to look at the file if possible.

     
  • Bruce Martin

    Bruce Martin - 2017-07-21

    I think I have worked out what the problem is, I will have a fix in the next couple of days

     
  • Bruce Martin

    Bruce Martin - 2017-07-21

    I have uploaded a new version:

    Which hopefully fixes the issue. The new version is available as:

    • An upgrade version - contains updated jars which you copy over your existing RecordEditor jars
    • A standalon USB version - you can unzip anywhere and run

    please let me know how you get on

     

Anonymous
Anonymous

Add attachments
Cancel