IN1 segment translate problem

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf IN1 segment translate problem

  • Creator
    Topic
  • #51911
    Krishna Kumar
    Participant

      I have an ADT message with multiple IN1 segments (Version 2.4 ADT_A28. )

      I have multiple IN1 segments

      IN1||||||

      IN2||||||

      IN1||||||

      IN2||||||

      Problem I am gaving when I use a tcl to translate the phone which is IN1-7 that translates works on first IN1 segment, but will not work on second IN1 segment

      Please help any suggestions

    Viewing 9 reply threads
    • Author
      Replies
      • #72240
        Jim Kosloskey
        Participant

          Krishna,

          Are you iterating over the IN1 segments?

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

        • #72241
          Krishna Kumar
          Participant

            Yes,

          • #72242
            Robert Kersemakers
            Participant

              Hi Krishna,

              Are you using the iteration-variable (probably %s1) in your IN1-7 address?

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            • #72243
              Krishna Kumar
              Participant

                Ni I am not aware of it

              • #72244
                Jim Kosloskey
                Participant

                  Krishna,

                  You need to place the counter variable you set up in the IN1 iteration in the appropriate IN1 address pathing. Otherwiise all of your work will only reference the first occurrence (iteration).

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

                • #72245
                  Krishna Kumar
                  Participant

                    This is the approach I am using

                    ITERATE

                    COMMENT TDO: Insert new actions here

                    PATHCOPY 3(0).0(%s1).IN1 -> 3(0).0(%s1).IN1

                    COPY pk_formatPhone 3(0).0(0).IN1.00432(%s1) -> 3(0).0(0).IN1.00432(%s1)

                    where pk_formatPhone is a tcl to format the phone coming over IN1-7.

                    Os this correct? Please help

                  • #72246
                    Jim Kosloskey
                    Participant

                      Krishna,

                      OK if it is the IN1-7 field (00432 – Insurance Co Phone Number) that is repeating (as well as the segment) in your case then you also need a field iteration for IN1-7 INSIDE the segment iteration you already have for the IN1 segment.

                      Let’s assume you use %f1 for this field counter then you would place your COPY inside the field iteration (along with whatever you are using to format the phone number) and change the pathing to this:

                      COPY pk_formatPhone 3(0).0(%s1).IN1.00432(%f1) -> 3(0).0(%s1).IN1.00432(%f1)

                      Don’t forget to put %s1 in the proper place in your basis setting for the IN1 field iteration.

                      Oh and I suspect pk_formatPhone is really meant to be @pk_formatPhone but if that is not true then you have some more work to do.

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

                    • #72247
                      Krishna Kumar
                      Participant

                        Thank you very much 😀

                      • #72248
                        Jim Beall
                        Participant

                          Don’t you need to do a group level vs a segment level iteration?

                          [

                          {

                          IN1

                          [ IN2 ]

                          [{ IN3 } ]

                          [{ ROL } ]

                          }

                          ]

                        • #72249
                          Krishna Kumar
                          Participant

                            Thanks you for all the  ðŸ˜€ help. I resolved the problem.

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