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
 

 

what are the default DISP Parameters for an existing dataset

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

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Thu Dec 14, 2006 11:57 am    Post subject: what are the default DISP Parameters for an existing dataset
Reply with quote

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
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Dec 14, 2006 11:59 am    Post subject:
Reply with quote

It took me about 10 seconds to find the answer in the fine manual.

O.
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Dec 14, 2006 1:34 pm    Post subject: Re: what are the default DISP Parameters for an existing dat
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Dec 14, 2006 11:22 pm    Post subject: Re: what are the default DISP Parameters for an existing dat
Reply with quote

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
View user's profile Send private message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Fri Dec 15, 2006 11:29 am    Post subject:
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Fri Dec 15, 2006 11:34 am    Post subject: Re: what are the default DISP Parameters for an existing dat
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Fri Dec 15, 2006 5:26 pm    Post subject:
Reply with quote

Hi Kiran

You cant omit the DISP parameter for an existing dataset.It should be OLD/SHR/MOD.

Thanks
Arun
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Dec 15, 2006 7:33 pm    Post subject: Re: what are the default DISP Parameters for an existing dat
Reply with quote

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
View user's profile Send private message
vibhor_thebest
Warnings : 1

New User


Joined: 18 Dec 2006
Posts: 3
Location: noida

PostPosted: Tue Dec 19, 2006 3:43 am    Post subject:
Reply with quote

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,---,-icon_cool.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Tue Dec 19, 2006 3:54 am    Post subject: Re: what are the default DISP Parameters for an existing dat
Reply with quote

Quote:
wat is the meaning of the 2nd and 3rd parameters in DISP=(new/old,---,-

DISP=([status][,normal-termination-disp][,abnormal-termination-disp])

Look here for a complete reference on DISP...
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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