|
View previous topic :: View next topic
|
| Author |
Message |
kalyanatiit
New User
Joined: 04 Sep 2005 Posts: 8
|
|
|
|
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 |
|
 |
Rupesh.Kothari
Member of the Month

Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
 |
Kevin
Active User

Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
 |
kalyanatiit
New User
Joined: 04 Sep 2005 Posts: 8
|
|
|
|
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 |
|
 |
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi Kalyan,
I believe,Kevin is right. DISP is for PDS and NOT just individual member.
Regards,
Sridevi. |
|
| Back to top |
|
 |
kalyanatiit
New User
Joined: 04 Sep 2005 Posts: 8
|
|
|
|
thanks sridevi.
My doubt got cleared.
thanks to all.
-Kalyan. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|