def validate( err_count=0 )
if (h=self.size) != (t=@trailer.d0036)
warn "Counter UNZ/UIZ, DE0036 does not match content: #{t} vs. #{h}"
err_count += 1
end
if (h=@header.cS001.d0001) != @charset
warn "Charset UNZ/UIZ, S001/0001 mismatch: #{h} vs. #@charset"
err_count += 1
end
if (h=@header.cS001.d0002) != @version
warn "Syntax version UNZ/UIZ, S001/0002 mismatch: #{h} vs. #@version"
err_count += 1
end
check_consistencies
if is_iedi?
if (t=@trailer.cS302.d0300) != (h=@header.cS302.d0300)
warn "UIB/UIZ mismatch in initiator ref (S302/0300): #{h} vs. #{t}"
err_count += 1
end
else
if (t=@trailer.d0020) != (h=@header.d0020)
warn "UNB/UNZ mismatch in refno (DE0020): #{h} vs. #{t}"
err_count += 1
end
end
super
end