Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PROBLEM FACING REGARDING TEMP FILE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: PROBLEM FACING REGARDING TEMP FILE
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    Post subject: Re: PROBLEM FACING REGARDING TEMP FILE
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    Post subject: Re: PROBLEM FACING REGARDING TEMP FILE
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us