here count should be count of file1 ,file2.we can use the below to take only detail records. INCLUDE COND=(1,3,CH,EQ,C'DET') All the detail part will have detail as suffix. Please let me know to achive this