JCl can be used for this.You can write a JCL for doing this.