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

DISP parameter affects the PDS or its' member


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

PostPosted: Mon Oct 10, 2005 5:06 pm
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
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:

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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top