View previous topic :: View next topic
|
Author |
Message |
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi All,
could you please let me know
"what are the default DISP Parameters for an existing dataset?"
is it shr or old? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
It took me about 10 seconds to find the answer in the fine manual.
O. |
|
Back to top |
|
|
Rajen
New User
Joined: 05 May 2005 Posts: 61
|
|
|
|
Hi kiran,
I guess you have confusion for DISP parameter for new and existing dataset.
As mentioned in the manual given by ofer71,
When u omit DISP parameter by dafault it will take NEW in effect.
If you omit the DISP parameter it will take DISP=NEW and your job abends shouting JCL ERROR.
Let me know if it is still not clear.
Thanks,
Rajen. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
kiran,
I think the question being asked is whether DISP 'OLD' or 'SHR' should be used with existing datasets.
DISP=OLD is an exclusive use of the dataset. No-one can use the dataset while you are using it.
DISP=SHR will allow other programs to access the dataset at the same time your using it.
There are a couple of things to consider when choosing DISP=OLD or DISP=SHR . Using either has their good and bad points.
If everyone used DISP=OLD on a dataset that was in heavy use would cause the jobs to run sequentially. It could take a long time to get through the job stream. On the other hand, if you have a job that is time crucial, you may want to use DISP=OLD to remove the processing from other jobs against the dataset.
If you are updating the dataset, it?s always a good idea to use DISP=OLD.
If your job does not update the dataset, using DISP=SHR is probably right.
Dave |
|
Back to top |
|
|
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Thanks for all your answers.
but, i read some where that it will take NEW,DELETE,DELETE as default for an existing dataset
Actually my question is as below:
If the "DISP=" keyword is not coded for an existing dataset, what default values will be
used for "DISP="?
Please let me know the answer.
Regards,
Kiran |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Kiran...
Quote: |
If the "DISP=" keyword is not coded for an existing dataset, what default values will be
used for "DISP="? |
Did you try doing that ??
I dont think you can have it with out DISP Parm for an existing one. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi Kiran
You cant omit the DISP parameter for an existing dataset.It should be OLD/SHR/MOD.
Thanks
Arun |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Kiran,
You are right that the defaut value given if DISP is not coded is 'NEW,DELETE,DELETE'. This is true for anytime it is not coded, not only for existing datasets.
--With a dataset not currently cataloged
Code: |
2 //JS00100 EXEC PGM=IEFBR14
3 //DD1 DD DSN=YOUR.PS.NODISP,
// SPACE=(80,(1,1),RLSE),AVGREC=K,
// RECFM=FB,LRECL=80
4 //SYSIN DD *
SARPAGE 3
IEF236I ALLOC. FOR YOURXXX JS00100
IGD101I SMS ALLOCATED TO DDNAME (DD1 )
DSN (YOUR.PS.NODISP )
STORCLAS (TSO) MGMTCLAS (TSOREG) DATACLAS ( )
VOL SER NOS= TSO466
IEF237I JES3 ALLOCATED TO SYSIN
IEF142I YOURXXX JS00100 - STEP WAS EXECUTED - COND CODE 0000
IGD105I YOUR.PS.NODISP DELETED, DDNAME=DD1
|
--With a dataset currently cataloged
Code: |
2 //JS00100 EXEC PGM=IEFBR14
3 //DD1 DD DSN=YOUR.PS.EXISTING.NODISP,
// SPACE=(80,(1,1),RLSE),AVGREC=K,
// RECFM=FB,LRECL=80
4 //SYSIN DD *
SARPAGE 3
IEF344I YOURXXX JS00100 DD1 - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ER
IGD17101I DATA SET YOUR.PS.EXISTING.NODISP
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG
RETURN CODE IS 8 REASON CODE IS 38 IGG0CLEH
IEF272I YOURXXX JS00100 - STEP WAS NOT EXECUTED.
|
|
|
Back to top |
|
|
vibhor_thebest Warnings : 1 New User
Joined: 18 Dec 2006 Posts: 3 Location: noida
|
|
|
|
hello folks,
i have a doubt in continuation with the discussion going on.
can anybody please tell me wat is the meaning of the 2nd and 3rd parameters in DISP=(new/old,---,- |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
|