In one job i am calling one proc two times with different input datas. Except input and final output all other intermediate step file are temporary file. The problem is that though the input files are different for two different regions, out put of the final steps are coming same.
Is this the problem of intermediate temporary file. Please explain.
I have already done what u r saying. But i want to know the problem, as the first time the proc is executed, the files are getting created as option (new, pass, delete). But when in the second time the same proc is called, and i again create those file as (new,pass,delete) they are not giving JCL errors. So that means those files are getting deleted. So the new data should come in the output file. But it is not exactly happening. The same datas are coming in both the output, though the inputs are different. Now i think u can understand the problem.
By the way program and sort steps are reformatting the data only.