I am trying to delete an instance of the DG1 segment if the DRG type = PROVISIONAL within an iterate. I have tried different approaches, but I haven’t been able to achieve the result I want yet. Any help/suggestions would be greatly appreciated!
Here is what I have in my xlate:
Iterate – type (segment), basis (1(0).0(0).DG1), variable (%s1)
If (1(0).0(0).DG1(%s1).00380.[0].[0] eq =PROVISIONAL
Copy (1(0).0(0).DG1(%s1).00380.[0] -> @null)
*I have tried to suppress the record (removed the copy) and it deletes the messages for those that meet the IF statement. So I know the IF is correct, I just can’t figure out how to get rid of the one DG1 segment and pass the rest of the message with the good DG1 segments.
Thanks, April