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
 

 

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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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