Note: the 1st ten bytes of the record which has 00000 will never be present in next ten bytes of any of the records.
records given in output -> 1 till 4 are related, and 5th till 8th are related.
From the above output file: let us assume,
xxxxxxxxxxx is less than aaaaaaaaaa (see the 1st ten bytes, these two are not present in the 2nd ten bytes in any of the records)
Now when i sort the output file in Ascending order..
The output must be like below:
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Maybe, if somebody could figure out your "rules".
Quote:
records given in output -> 1 till 4 are related, and 5th till 8th are related.
Related in what way? What are the "rules" that give the relationship?
Quote:
let us assume, xxxxxxxxxxx is less than aaaaaaaaaa
What do you mean by this? Last time I looked, 'x' was greater than 'a'.
Quote:
when i sort the output file in Ascending order..
Sort in ascending order by which field?
You're going have to do a better job of explaining what you want to do and the "rules" for doing it.
You should also give the RECFM and LRECL of the input file, and the starting position, length and format of all relevant fields. Maybe an example with more records would help as well.