Concat in Xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Concat in Xlate

  • Creator
    Topic
  • #54998
    Femina Jaffer
    Participant

      Does anyone remember what the syntax to append a “P” to a field in the destination using an xlate?  For example, I need to append “P” to PID2 and then copy to destination PID2.   Please advise, my mind is just blank.

      As an FYI we have CL 6.1.1.

      Thanks,

      Femina

    Viewing 3 reply threads
    • Author
      Replies
      • #83731
        Jim Kosloskey
        Participant

          CONCAT is the Action.

          In the Source put the fields (including literals if that is what you want) you want concatenated together and the field to receive the concatenation in the Destination.

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

        • #83732
          Jim Kosloskey
          Participant

            Oh and if one of the fields is a destination field just make sure there is a tilde (~) a the front of that field path in the Source.

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

          • #83733
            Femina Jaffer
            Participant

              Thanks Jim, that’s what I thought.  Can you provide an example, cause its still not working.  Here is what I have:

              Action Concat:

              Source:  1(0).STF(0).#2(0).[0]=P

              Destination:  @tmp

              I also tried adding the tilde in front of the source, no luck.

            • #83734
              Femina Jaffer
              Participant

                Jim,  I was finally able to get this too work.  Thanks for your help!

                Here is what I did:

                Action: CONCAT

                Source:  1(0).STF(0).#2(0).[0]  /** =P in the next line

                            =P

                Destination: @tmp

                Then I did a COPY using the tmp variable and copied to the destination field.

                FJ

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