HRL Segment Repeat

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf HRL Segment Repeat

  • Creator
    Topic
  • #49063
    Klaus Wais
    Participant

      Hi,

      I try to create record layout for BDT/GDT messages. BDT/GDT messages consist of repeating segments – no upper limit defined for the count of segments.

      I’ve created an HRL with 1 segment that is repeated.

      Does anybody know how to specify the “no upper limit for the count” in the Repeat Options ?

      Thanks,

      Klaus Wais

    Viewing 4 reply threads
    • Author
      Replies
      • #60596
        Vince Angulo
        Participant

          I believe a -1 will work.

        • #60597
          Klaus Wais
          Participant

            I already tried -1 but it seems not to work (tested with Testing Tool)

            Best Regards,

            Klaus Wais

          • #60598
            David Harrison
            Participant

              Can we have a look at your hrl.

            • #60599
              Klaus Wais
              Participant

                sure

                This is the HRL for the GDT message (up til now I set the repeats to 999)

                # Record Layout: gdt_msg.hrl

                #

                prologue

                   who: Admin

                   date: February 9, 2007 3:39:32 PM CET

                   type: hrl

                   version: 3.0

                end_prologue

                #

                # Include Files

                #

                #

                # Field declarations

                #

                {NAME Segment} {TYPE fmt} { FMT {

                   { RECORD gdt.hrl }

                   { RECORD_TYPE hrl }

                   { REPEATS 999 }

                }}

                The only segment is another HRL gdt.hrl:

                # Record Layout: gdt.hrl

                #

                prologue

                   who: Admin

                   date: February 7, 2007 1:00:02 PM CET

                   type: hrl

                   version: 3.0

                end_prologue

                #

                # Include Files

                #

                #

                # Field declarations

                #

                {NAME HEADER} {TYPE fmt} { FMT {

                   { RECORD gdt_head.frl }

                   { RECORD_TYPE frl }

                }}

                {NAME BODY} {TYPE fmt} { FMT {

                   { RECORD gdt_value.vrl }

                   { RECORD_TYPE vrl }

                }}

              • #60600
                David Harrison
                Participant

                  If you can put another field in the hrl with a constant value, you can use Repeat . . While

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.