Need simple tcl to suppress characters

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Need simple tcl to suppress characters

  • Creator
    Topic
  • #47879
    Jason Bond
    Participant

      This is probably very easy for tcl people, but I need some code to suppress the leading four carots in a location field.  Any ideas?

      Thank You,

      Jason Bond

      Samaritan Health

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

          Jason,

          If you are using an Xlate simply copy the fifth component to the first component and copy @null to the fifth component (if using BULKCOPY or PATHCOPY). As a result the Xlate will suppress what now become trailing carets.

          I.E. ob field |^^^^data| <---before copies (if using BULKCOPY or PATHCOPY otherwise ib field looks like that) COPY 0(0)….field(0).[4]          0(0)….field(0).[0]    Field now looks like: |data^^^^data| COPY  <--- this COPY is unnecessary if not using BULKCOPY or PATHCOPY @null                            (0)….field(0).[4]  Field now: |data^^^^|  but… since the Xlate gets rid of nonsensical separators really will output like this: |data|. I think that is what you want. Jim Kosloskey

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

        • #56970
          Jason Bond
          Participant

            Thank you, I will give that a try.

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