Splitting multiple FT1 into new message creates repeats

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Splitting multiple FT1 into new message creates repeats

  • Creator
    Topic
  • #50833
    Darshak Shah
    Participant

      I read both the post for the splitting of multiple FT1 message into separate messages with one FT1 each.

      My end result is explained with an example”

      Original message with 3 FT1

      End result I get 3 different messages, but the First message has one FT1, second message has 2 FT1 (first two) and third message has 3 FT1 (all 3 FT1’s).

      I have a continue inside the iterate and suppress is the last one on my xlate outside the iterate

      My Iterate is of type group

      In the iterate I do the following:

      Pathcopy : 1(%g1).FT1(0) – > 1(%g1).0(0).FT1(0)

      If  ~1(%g1).0(0).FT1(0).#6(0)  eq  =2

         =CH -> 1(%g1).0(0).FT1(0).#6(0)

      else

        =CR -> 1(%g1).0(0).FT1(0).#6(0)

      CALL for CDM reformats : 1(%g1).FT1(0).#7(0).[0] -> 1(%g1).0(0).FT1(0).#7(0).[0]

      CALL for dept reformats : 1(%g1).FT1(0).#7(0).[0] -> 1(%g1).0(0).FT1(0).#13(0).[0]

      @null -> 1(%g1).0(0).FT1(0).#20(0)

      continue

      Please help

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #67705
        Jim Kosloskey
        Participant

          Darshak,

          Try removing the iteration counter from your outbound field/segment references and use zero instead.

          You wnat to iterate through your inbound but you only wnat one outbound (the zero in the group position indicates one).

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #67706
          Darshak Shah
          Participant

            Jim

            thanks a lot. Its working as you suggested

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