How to process a mixed piece batch job