Menu

#18 Split redefine does not work on multiple levels.

v1.0_(example)
pending
None
1
2020-02-27
2017-04-03
Anonymous
No

Hi,

I Have a copybook with its content looking like the following:

  01 Record.
      05 Record-Header.
         10 Record-Type.                           Pic X(8).
         10 Record-Name.                           Pic X(8).
     05 Record-Content.
         10 Version.                               Pic X(4).
         10 FILLER                                 Pic X(15).
     05 Record-AltContent REDEFINES Record-Content.
         10 Age.                                   Pic XX.
         10 Address.                               
             15 No.                                  Pic XX.
             15 St.                                  Pic X(15).
         10 City REDEFINES Address.
             15 FILLER                               Pic X(2).
             15 Zip.                                 Pic X(7).
             15 Name.                                Pic X(6).
             15 FILLER                               Pic X(2).
      05 More-stuff.                             Pic X(24).

I am able to read an associated ECBDIC file with no problem. However, I have some problems whenever I want to use the SPLIT_REDEFINE property.

I end up with only two records:

  • 10 Record-Type
  • 10 Record-Name
  • 10 Version.

and

  • 10 Record-Type
  • 10 Record-Name
  • 10 Age.
  • 15 No.
  • 15 St.
  • 15 Zip.
  • 15 Name.

All sub redefines are not taken into account.

SPLIT_REDEFINE does not seems to work when multiple declarations on different levels are present.

Discussion

  • Bruce Martin

    Bruce Martin - 2017-04-04

    Split redefines was intended for a single level redefine.

    If the redefines are at different levels, how is the program supposed to work out which redefines to split on ???

     
  • Bruce Martin

    Bruce Martin - 2017-04-06

    You should still be able to process the file with JRecord. You just need to work out wich redefine is used.

     
  • Anonymous

    Anonymous - 2017-04-07

    The problem is not with the file not being able to be processed. I have to select all fields from the redefine in lower levels instead of selecting a layout index.

     
  • Bruce Martin

    Bruce Martin - 2017-11-01
    • status: open --> pending
     
  • Anonymous

    Anonymous - 2020-02-27

    Has this issue been resolved, as I am facing the same issue. Please let me know if there is a solution to this issue.

     
  • Bruce Martin

    Bruce Martin - 2020-02-27

    To Anonymous - No Change Generally you do not need to use a Split, it can be handled manually. If you

    • supply a copybook
    • tell me exactly what you are trying to do I will try and advise you
     

Anonymous
Anonymous

Add attachments
Cancel