How to check to see a segment is blank

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to check to see a segment is blank

  • Creator
    Topic
  • #51379
    Doug Lundin
    Participant

      I want to check repeating segments (AL1, DG1, IN1)  to see if they exist.  Can I do this within the translator or do I need a pre proc?

    Viewing 3 reply threads
    • Author
      Replies
      • #69972

        You can do it in either place.

        -- Max Drown (Infor)

      • #69973
        Doug Lundin
        Participant

          How can I do it within a translation? Can’t get it to work

        • #69974

          Try testing a required field in the segment. For example maybe ‘IF DG1.03 eq @null then …’

          I could be wrong on that working, I haven’t tried it myself recently. Personally, I would normally use a tcl proc for that.

          -- Max Drown (Infor)

        • #69975
          James Cobane
          Participant

            I think it’s somewhat dependent on what you want to do based upon the existence/non-existence of the segments.  If you want to KILL (or ERROR) the message if the segment doesn’t exist, then you would want to do it in a tps proc.  If you simply want to null out something or conditionally COPY/value something on the outbound message, then do it within the Xlate.

            Jim Cobane

            Henry Ford Health

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