Iteration on non-existent segment.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iteration on non-existent segment.

  • Creator
    Topic
  • #49516
    John Hamilton
    Participant

      I need to determine if an optional segment exists in my source message.

      I know there has to be a way to do this but I

    Viewing 1 reply thread
    • Author
      Replies
      • #62279
        Robert Kersemakers
        Participant

          Hi John,

          Using the IF statement with @null should work!

          I have an ADT-translation, where I need to check whether a MRG-segment is present. I use an

          Code:

          IF 0(0).MRG.00211 ne @null

          to check this.

          If you get an IR-tags mismatch, check the mapping of your fields: there’s something wrong there.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #62280
          John Hamilton
          Participant

            Helps if all the iterations are setup correctly.

            The IF was working fine the outside iteration was not.  I just needed to move the IF statement up two levels.

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