------------------------------------------------------------------------
Input file has two types of records, detail and batch.
Where I want to sort Detail records on 12 digits (10 digits base and 2 digit sequence) number (start 6th position till 17th).
And then place the corresponding Batch record after the end of corresponding detail records. Batch record has 10 digit base in it, (starts at 29th position till 38th)