View previous topic :: View next topic
|
Author |
Message |
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
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. |
|
Back to top |
|
|
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 32 Location: Chennai
|
|
|
|
may be.
By the way what does ur program do with the temp file. does it maintains the content of some file?
Y not try giving different temp files for both the steps. It wont cost anything |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi Ajay,
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. |
|
Back to top |
|
|
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 32 Location: Chennai
|
|
|
|
Y not give different DD name for those temp files? Even if it s a proc send the different DSN names from the run JCL. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
When you make a jcl with proc you must assure that the name of statement proc is unique(is not absolute necessary but advisable) as:
Code: |
//STEPPR01 EXEC PROC1
//STEPPR02 EXEC PROC1 |
You must also specify, in various step of a proc all temporary files as unique for the proc, then if you use a temp you must use these disposition:
Code: |
//DD1 DD DISP=(,PASS),DSN=&&TEMP
//DD1 DD DISP=(OLD,PASS),DSN=&&TEMP
//DD1 DD DISP=(OLD,DELETE),DSN=&&TEMP |
So, you will have no doubt that temporary file you are using is the same that you need! |
|
Back to top |
|
|
SteveConway
New User
Joined: 26 May 2005 Posts: 28 Location: Northern VA, USA
|
|
|
|
Post your joblog and expanded JCL, if you haven't gotten this figured out yet.
Cheers,,,Steve |
|
Back to top |
|
|
|