I have two input files
F1:
*****************************************
XX12
*****************************************
F2:
*****************************************
A1234 Class
B1212 Class
D3440 School
C1234 Class
*****************************************
I want the output file to contain a header capturing '12' from File 1 and the detail records should be sorted from F2, the output should look like
F3:
*****************************************
Sequence : 12
A1234 Class
B1212 Class
C1234 Class
D3440 School
*****************************************
Does anyone know how to do this , can we use a join or something ? And I want it only in SYNCSORT or DFSORT as we are cannot use ICETOOL or ICEMAN .