Post proc for VRL

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Post proc for VRL

  • Creator
    Topic
  • #51768
    Mike Campbell
    Participant

      I’ve exhausted my searching of the forum.  I see where, in order to force the last, in this case, pipe ‘|’ to be in the outbound vrl file, we have to default the last segment to some value, the call a post proc to remove the data.  

      Never done a post proc before, so does anyone have an example of the correct way to do that?  

      HL/7 inbound to VRL outbound.

      CL 5.7, running on AIX.

      The current outbound message is:

      18695459|Build|Test||02/29/1960|Male|4543733|102-10-1239|Emergency Outpatient|Self Pay|NMH|05/18/2010|05/18/2010||$Z$Q

      I want to remove the $Z$Q (or whatever value we use) to force the last pipe.

      Thanks.

    Viewing 2 reply threads
    • Author
      Replies
      • #71699
        Levy Lazarre
        Participant

          Mike,

          I would try something like this in the post proc tps:

          Code:



          run {
             keylget args MSGID mh ;# Get message handle
             set msg [msgget $mh] ;# Get message
             
             # Remove the last four characters ($Z$Q) from the message
             
             set msg [string range $msg 0 end-4]
             
             # Put modified message in message handle and continue the message
             
             msgset $mh $newmsg
             
             return “{CONTINUE $mh}”
          }

        • #71700
          Mike Campbell
          Participant

            Thanks Levy.

          • #71701
            Levy Lazarre
            Participant

              Mike,

              Correct. I am glad you caught the typo.

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