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

Same Temporary dataset name given in two jobs.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Aug 02, 2008 10:27 pm
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: 2146
Location: At my coffee table

PostPosted: Sat Aug 02, 2008 10:54 pm
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
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

Moderator Emeritus


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

PostPosted: Sun Aug 03, 2008 1:23 am
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: 2146
Location: At my coffee table

PostPosted: Sun Aug 03, 2008 1:27 am
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
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

Moderator Emeritus


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

PostPosted: Sun Aug 03, 2008 2:41 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top