I want to Duplicate each record in the file so in output file there will be 2 records for each .. first willbe having a D at 5th position and second will be having a H in 5th position .. like above
I am planing to do it with SYNCSORT . .and was wondering if any one can give an idea or have done this kind of sort earlier . I tried searchign it in Docs or google but couldnt find much to implement
You can make things clearer by using BUILD instead of the OUTREC (so it can't be confused with OUTREC) and not using all the columns. Also by indentation.
I'd also use symbols/SYMNAMES to avoid the repeated code, but I like doing it the easy (to understand and maintain) way.