View previous topic :: View next topic
|
Author |
Message |
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What happened when you tried it yourself. |
|
Back to top |
|
|
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
Its a GDG generation of type PS and having Disp=(New,catlg,delete). |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|