Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us