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
 

 

DISP parameter affects the PDS or its' member

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

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Mon Oct 10, 2005 1:44 pm    Post subject: DISP parameter affects the PDS or its' member
Reply with quote

Hai all,

//xx dd dsn=user.ds1.ds2(member),disp=(OLD,KEEP,KEEP)

in the above statement, disp is for pds or member ?

somebody can help me.

thanks,
-Kalyan
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Mon Oct 10, 2005 5:06 pm    Post subject: Re: Under what condition DISP parameters r used
Reply with quote

Hi Kalyan,

It seems you ar new to Forum. Welcoe to Forum.

Whenever you are askin any new query please open a new Topic.

Quote:
//xx dd dsn=user.ds1.ds2(member),disp=(OLD,KEEP,KEEP)

in the above statement, disp is for pds or member ?


It is only for member and any way nothing will happend to PDS and its is just referring the member.

Hope this helps

Regards

Rupesh
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Oct 10, 2005 5:34 pm    Post subject: Re: DISP for PDS
Reply with quote

Kalyan, please get into the habit of reviewing the documentation manuals first. This page of the JCL Reference Manual should answer your question:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/12.19.8?SHELF=&DT=20050713232151&CASE=

Quote:

12.19.8 Disposition of Partitioned Data Sets (PDSs and PDSEs)

When you specify DISP=MOD or DISP=NEW for a partitioned data set (PDS) or partitioned data set extended (PDSE), and you also specify a member name in the DSNAME parameter, the member name must not already exist. If the member name already exists, the system terminates the job.

When you specify DISP=OLD for a PDS or a PDSE, and you also specify a member name in the DSNAME parameter, the data set must already exist. If the member name already exists and the data set is opened for output, the system replaces the existing member with the new member. If the member name does not already exist and the data set is opened for output, the system adds the member to the data set.

When you specify DISP=MOD for a PDS or a PDSE, and you do not specify a member name, the system positions the read/write mechanism at the end of the data set. The system does not make an automatic entry into the directory.

When you specify DISP=MOD for a PDS or a PDSE, and you do specify a member name, the system positions the read/write mechanism at the end of the data set. If the member name already exists, the system terminates the job.

When you specify DISP=SHR for a partitioned data set extended (PDSE) and also specify a member name, then:

- If the member name exists, the member can have one writer or be shared by multiple readers, or

- If the member name does not exist, the member can be added to the data set. Thus, multiple jobs can access different members of the data set and add new members to the data set concurrently -- but concurrent update access to a specific member (or update and read by other jobs) is not valid.
Back to top
View user's profile Send private message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Tue Oct 11, 2005 10:24 am    Post subject:
Reply with quote

First of all thanks for replies.

hai Rupesh and kevin...

I am very new to this forum & mainframes.
recently got into mainframes project and in learning stage.

My doubt is that, if member1 and member2 are in same PDS,

can i give like this.
member1 with disp=shr,
member2 with disp=mod.

i am little bit confused with the two explanations given by you.

according to kevin link, disp is for PDS.(not for individual member)
according to rupesh, disp can be given for each member.

plzz help me out from this confusion.

thanks kevin for suggestion.

info can be appreciated.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Fri Oct 14, 2005 1:00 am    Post subject:
Reply with quote

Hi Kalyan,
I believe,Kevin is right. DISP is for PDS and NOT just individual member.
Regards,
Sridevi.
Back to top
View user's profile Send private message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Fri Oct 14, 2005 8:39 am    Post subject:
Reply with quote

thanks sridevi.

My doubt got cleared.

thanks to all.
-Kalyan.
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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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