View previous topic :: View next topic
|
Author |
Message |
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
If both jobs have the same jobname and re run at the same time |
Won't happen Big OZ won't let them run at the same time
d |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
dick scherrer wrote: |
Won't happen Big OZ won't let them run at the same time |
IIRC, that too is optionable.... |
|
Back to top |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
Both jobs are having different name......then there should be no issue...? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
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 |
|
|
|