IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PROBLEM FACING REGARDING TEMP FILE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri May 20, 2005 11:48 am
Reply with quote

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
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Fri May 20, 2005 12:20 pm
Reply with quote

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
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri May 20, 2005 12:33 pm
Reply with quote

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
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Fri May 20, 2005 12:37 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Fri May 20, 2005 1:52 pm
Reply with quote

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
View user's profile Send private message
SteveConway

New User


Joined: 26 May 2005
Posts: 28
Location: Northern VA, USA

PostPosted: Thu May 26, 2005 8:32 pm
Reply with quote

Post your joblog and expanded JCL, if you haven't gotten this figured out yet.

Cheers,,,Steve
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top