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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can i have the same DSN name as output in 2 different jobs.
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 05, 2009 2:25 pm    Post subject:
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    Post subject: Reply to: Can i have the same DSN name as output in 2 differ
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 05, 2009 2:55 pm    Post subject:
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    Post subject: Reply to: Can i have the same DSN name as output in 2 differ
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: 1703
Location: Australia

PostPosted: Wed Aug 05, 2009 4:11 pm    Post subject:
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    Post subject: Reply to: Can i have the same DSN name as output in 2 differ
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 05, 2009 5:06 pm    Post subject:
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    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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 4 Wed Jul 26, 2017 7:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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