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
 
Same Temporary dataset name given in two jobs.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Sat Aug 02, 2008 9:23 pm    Post subject: Same Temporary dataset name given in two jobs.
Reply with quote

Hi,

can we use same temporary dataset name in two job
Ex-
Job-1 : OTEMP DD DSN=&&DSET01,
DISP=(NEW,PASS,DELETE),

Job2: OIDSP DD DSN=&&DSET01,
DISP=(NEW,PASS,DELETE),


if Job1 and JOB2 runs parallel does it have any impact on dataset.
both jobs have their own functionally.

Thanks,
Jaspal
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Aug 02, 2008 10:27 pm    Post subject:
Reply with quote

Hello,

You can use the same &&dsn in multiple jobs. The system generates a unique name for each && dataset specified.

To see this, look at the 3rd jes sysout (it will show the dataset allocation/de-allocation and you can see the generated dataset name).
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sat Aug 02, 2008 10:54 pm    Post subject: Re: Same Temporary dataset name given in two jobs.
Reply with quote

jaspal wrote:
if Job1 and JOB2 runs parallel does it have any impact on dataset.
If both jobs have the same jobname and re run at the same time, the generated data set names could be identical. Take a look at 12.22.2.6 Data Set Name for Temporary Data Set.
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Sat Aug 02, 2008 11:05 pm    Post subject:
Reply with quote

Thanks Dick ,for the confirmation. i have coded same temporary dataset name in two different job and they ran parallel.

i do validated the output there was no impact.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Aug 03, 2008 1:23 am    Post subject: Reply to: Same Temporary dataset name given in two jobs.
Reply with quote

Hello,

Quote:
If both jobs have the same jobname and re run at the same time
Won't happen icon_cool.gif Big OZ won't let them run at the same time icon_wink.gif

d
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sun Aug 03, 2008 1:27 am    Post subject: Re: Reply to: Same Temporary dataset name given in two jobs.
Reply with quote

dick scherrer wrote:
Won't happen icon_cool.gif Big OZ won't let them run at the same time icon_wink.gif
IIRC, that too is optionable.... icon_smile.gif
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Sun Aug 03, 2008 2:11 am    Post subject: Re: Reply to: Same Temporary dataset name given in two jobs.
Reply with quote

Both jobs are having different name......then there should be no issue...?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Aug 03, 2008 2:41 am    Post subject:
Reply with quote

Hello,

If both jobs have different names, there will not be a problem.

It is also very likely that your system is configured to only run 1 job of a given name at one time. You can easily test this by submitting multiple jobs with the same name and watching all but one be held in the queue as "duplicate".
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Sun Aug 03, 2008 2:43 am    Post subject:
Reply with quote

Yes Dick, you are true if multiple jobs are submitted with the same name in one region then JES executes one job at a time and puts other jobs on hold.
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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