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

Can i have the same DSN name as output in 2 different jobs.


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

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Wed Aug 05, 2009 2:20 pm
Reply with quote

Hi,

We have a requirement where in which we have to use the same DSN in output dd statement for 2 different jobs. Will it work out or it gives me an error.

Thanks
Karthik
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 05, 2009 2:25 pm
Reply with quote

What happened when you tried it yourself.
Back to top
View user's profile Send private message
dkarthikreddy

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Wed Aug 05, 2009 2:30 pm
Reply with quote

When i tried its working without any abends.
Problem here is we have a high volume processing with one job and low volume processing with another job and both uses same output dsn.
When high volume job is running which uses dsn say A and at the same time the low volume job wil start running also uses dsn A.

I guess their wont be any issues with this until we have DISP=shr or disp=(new,catlg,delete), i guess the problem arises when only Disp=Old is present.

I have tested with low volumes so could nt figure out the solution.

Regards
Karthik
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 05, 2009 2:55 pm
Reply with quote

Is there any specific reason that the dataset names must be identical.
What is the problem in changing the dataset name.

Perhaps a little insight into how the processing cycle works could help us to help you.
Back to top
View user's profile Send private message
dkarthikreddy

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Wed Aug 05, 2009 2:59 pm
Reply with quote

Yes, their is a specific reason to use the same dsn, coz the next job after this two way processing wil generate a sequence no in header record and uses the above said dsn A as input do the seq no population
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Aug 05, 2009 4:11 pm
Reply with quote

Hi,

exactly what disposition are you using ?

I doubt both jobs can update the file at the same time, what type of file is it ?

Gerry
Back to top
View user's profile Send private message
dkarthikreddy

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Wed Aug 05, 2009 4:16 pm
Reply with quote

Its a GDG generation of type PS and having Disp=(New,catlg,delete).
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 05, 2009 5:06 pm
Reply with quote

Are you referencing the absolute generation (i.e., using GnnnnV00) or the relative generation (i.e., (+1))? The JCL Language Reference manual (link at the top of the page) specifically talks about GDG enqueues in the section on DISP. If you haven't read this material, please do so as it may prevent corrupted data sets in the future.
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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
Search our Forums:

Back to Top