RM vs Visual Cobol RM Relative Files

I'm in the slow process of migrating from RM w/Linux to Visual Cobol RM ... with DevHub to allow use of the Linux while coding in Windows/Eclipse.

I've just encountered a problem with Relative Files. In "Standard" RM the relative file ... if you "read next" is in Sequence.

1,2,3,4,5,6,7,8,9 erc.

Via Visual Cobol RM ... the Relative Key is a bit of a mess.

1,6,7,8,9,10,11,12,19,23,24,25 ...

I really discovered this problem when my transitioned code tried to access Record #2, which doesn't exist according to VC.

Any ideas on what I will need to do to get the program to work as written? I don't, unfortunately, have the time to do a file migration on all the systems and files.

I've attached the simple program, and the file that proves my point. RM when set of results Visual Cobol RM different set.

Any help would be appreciated.

Test.zip
Parents
  • These are the Compiler Directives I'm using right now ... I switched from Dialect"RM" to RM because it was effecting other code I had.

    idxformat"21"

    & DIALECT"RM"

    RM

    ADDRSV"COMP-6"

    COMP-6"2"

    & ASSIGN-PRINTER()

    SETTINGS

    preprocess"window1"

    When I get a chance, I'll switch back to Dialect"RM" for this and see if it gives different results on my end.

Reply
  • These are the Compiler Directives I'm using right now ... I switched from Dialect"RM" to RM because it was effecting other code I had.

    idxformat"21"

    & DIALECT"RM"

    RM

    ADDRSV"COMP-6"

    COMP-6"2"

    & ASSIGN-PRINTER()

    SETTINGS

    preprocess"window1"

    When I get a chance, I'll switch back to Dialect"RM" for this and see if it gives different results on my end.

Children
No Data