But now i got the JCL ERROR in step 3. why ?
i thought, the problem could be while creating the temprorary dataset,since we have the DD statement DD DSN=&&TEMP1, DISP=(NEW,PASS).
Your problem is you are thinking. The job output will tell you EXACTLY what the problem is -- not what you THINK it may be. And since temporary data sets are deleted at the end of the job (see chapter 12.19.11 of the JCL Language Reference
manual which explicitly
states that a temporary data set is deleted at the end of the job), what you are thinking cannot happen -- the temporary data set is not interfering with your restarted job. When the job runs again, the system-generated name for the temporary data set will, again, be completely unique so there is no way there can be a problem.
Go back and look at the output of the job to find the real cause of the error (probably in the JES output messages) and fix it rather than thinking about the impossible.