We are dealing with a AL1 segment followed by a ZAL segment(a 'Z' segment). The requirement has 2 parts. If Al1-5 is empty move ZAL7.2.1 to AL1-5 and then remove the corresponding ZAL segments that follow the AL1 segments after moving the value from ZAL7.2.1 to AL1-5.
I am clear about the logic for moving the value from ZAL7.2.1 to AL1-5(if this is empty) but stuck at removing the corresponding ZAL segment.