How to process a similar piece batch job