In Position 5 thru 8, if it doesnt have '9999', then its a header rec.
I want to sum fields on the last field.
Sometimes, there are duplicate header records, and when I sum fields, I am getting S0c7.
Is there a way in Syncsort to exclude the header record only with summing the fields?
I dont want to eliminate the header record.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Mon Jun 18, 2007 11:28 am Post subject:
Kolusu,
I think you need to revert back the Zeroes that you introduced in position (26,5) of header back to Spaces / whatever it was - using OUTREC (after Sorting/summing).
Joebite,
Quote:
Sometimes, there are duplicate header records, and when I sum fields, I am getting S0c7.
Is there a way in Syncsort to exclude the header record only with summing the fields?
I dont want to eliminate the header record.
I have a question here....When you say that you may have duplicate headers, do you really want to retain them as such in the output ?
Kolusu's solution will work fine, but it will remove duplicates in header record (retaining only 1 header / group). Is this acceptable ???
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum