E123456789 G123456798 ignore this as this is the first instance of G record in scope h12345 E1234567 E7899874 G123456798 even though this is the same ignore as its first instance G123456789 ignore this as it is different from previous G record G123465798 should flag duplicate here because it is the same first G record in scope!!! h1245