OBX.#5 truncation problem while performing a COPY

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf OBX.#5 truncation problem while performing a COPY

  • Creator
    Topic
  • #53462
    George Kulz
    Participant

    Hi all.

    I’m trying to copy the text from OBX.#5 from the source message to the destination message using the following Tcl code to parse what I want out of the source:

    set input [lindex $xlateInVals 0]

    set collectedDateTime [string first “Collected: ” $input]

    if {$collectedDateTime != -1} {

     set output [string range $input $collectedDateTime end]

    } else {

     set output ” “

    }

    set xlateOutVals $output

    In the source message, OBX.#5 contains:

    Source: STL                           Collected: 01/07/13 7:00

    In the destination message, OBX.#5 looks like this:

    Collected:

    Can someone tell me why the text is getting truncated here? I saw a similar topic where someone mentioned changing the length of the OBX.#5 field, but I didn’t understand the solution presented. I’ve looked at the length of the OBX.#5 field, and it’s currently set to 65536. The solution mentioned to change the length to -1 to make it “infinite”, but I’m unable to type in a negative number.

    If it’s any help, we’re on version 5.5 of Cloverleaf here.

    Thank you.

    George Kulz

    Senior Java Programmer

    Information Services

    Memorial Hospital of Rhode Island

Viewing 0 reply threads
  • Author
    Replies
    • #77762
      Tom Rioux
      Participant

      You have to remember that “xlateOutVals” is a list.  If there is a space in there, it will throw you off.  Set your xlateOutVals as:

      set xlateOutVals

        That should get you what you need.

        Hope this helps…

        Tom Rioux

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

Forum Statistics

Registered Users
5,053
Forums
28
Topics
9,235
Replies
34,160
Topic Tags
273