Nulling GT1 that has a *

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Nulling GT1 that has a *

  • Creator
    Topic
  • #51586
    Steven Lindsey
    Participant

      Not to get into a long store but we have sometimes in our GT1 that as * in the GT1_3 and GT1_21.  We have just been removing the * but now the want us to delete the entire line.  Here are screen shots that I have now.  I’m trying to think of the best way to do this.

    Viewing 8 reply threads
    • Author
      Replies
      • #70864
        Tom Rioux
        Participant

          I see a tilde in GT1.3 but can’t tell if it is there in GT1.21.   Are these repeating fields?  Can you mock up some data to place in there to show us what you mean?

          If it is repeating fields, you can probably just use the lvarpop to remove the line out of there.

          Tom

        • #70865
          Gary Atkinson
          Participant

            regsub with replace with null?

          • #70866
            Steven Lindsey
            Participant

              It is a repeating field.  Here is what the message looks like and I want to delete the GT1 if it as a *

            • #70867
              Gary Atkinson
              Participant

                Deleted the whole segment or just the field?

              • #70868
                Steven Lindsey
                Participant

                  The hole GT1 segment

                • #70869
                  Gary Atkinson
                  Participant

                    I would put your iteration inside an IF.  Only copy if the * is not found.

                  • #70870
                    Steven Lindsey
                    Participant

                      can you give me an example

                    • #70871
                      Gary Atkinson
                      Participant

                        Iterate on your base

                            Copy GT1   temp variable (set some constant)

                            IF constant found

                            Copy GT1

                      • #70872
                        Tom Rioux
                        Participant

                          One thing you may want to consider when removing the GT1 segment is the numbering of the Set ID’s for each segment.   The downstream application(s) in question may use this (or GT1.15) to consider the priority for each of the Guarantors.   If this is the case, you may need to renumber your guarantor segments when sending the message outbound.

                          Tom Rioux

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