View previous topic :: View next topic
|
Author |
Message |
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
How to give the Serial access to the PDS so that if one member is being modified at the same time the other member can also be modified. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Did you mean that two differnt (RACF) user should be able to update two different members at the same time from a single PDS? |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
Yah Anuj ...
Basically two different jobs are submitting at the same time using the same PDS but updating different members. So to stop failures of these two jobs my peers wanted to give the serial access to the PDS. But I am unaware of how to do it. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
If different members are getting updated, there should not be any problem (DISP=SHR)..did I misunderstood something... |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
Yah it should not but it is giving problem.
So my peers wanted to serial access to the PDS, which I dont understand. Is there anything like this. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Please show the JCL you are using & the error message/s you get, when you try to update. |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
213-30,IFG0194D,JOBPDB,QUIKBND,SYSUT2,7410,IMS167,pds.pds.PARM(mem11)
*** ABEND SYSTEM COMPLETION CODE=213 REASON CODE=00000030 NAME=UNKNOWN
This is the error I am encountering in one of the job and other is giving OUTLIM |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
213
Explanation: The error occurred during processing of an OPEN macro instruction for a direct access device. This system completion code is accompanied by message IEC143I. Refer to the explanation of message IEC143I for complete information about the task that was ended and for an explanation of the return code (rc in the message text) in register 15.
Application Programmer Response: Respond as indicated to the applicable message.
System Programmer Response: If the error recurs and the program is not in error, look at the messages in the job log for more information. Search problem reporting data bases for a fix for the problem. If no fix exists, contact the IBM Support Center. Provide the JCL and the program listing for the job.
Source: DFSMSdfp
|
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
And
Quote: |
REASON CODE=00000030 |
has the following explanation
Quote: |
An attempt was made to open a partitioned data set (PDS) for OUTPUT,DISP=SHR. The PDS is already open in this condition, and a DCB is already open for output to the data set. The data set might be on the same system or on another system that is sharing the volume. Access was not serialized before the attempt to open the data set. |
Things should have worked with DISP=SHR..( ), try making the dataset a PDSE rather than a PDS. . . |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
An attempt was made to open a partitioned data set (PDS) for OUTPUT,DISP=SHR. The PDS is already open in this condition, and a DCB is already open for output to the data set. The data set might be on the same system or on another system that is sharing the volume. Access was not serialized before the attempt to open the data set.
How to do the last one then? I already have my PDS in SHR mode. And I cannot make it a PDSE. |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
Thats what serialization I am asking about. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Serialized in the context mentioned means Enqueue and Dequeue on the data set to prevent simultaneous update problems. This typically requires an assembler routine to do the enqueue and dequeue -- and can cause other problems. You really need to find a way NOT to do this if you can. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
PDS has never supported two processes writing two different members at the same time. It can't because a PDS is just a sequential file with a directory at the beginning. If two processes write at the same time, the last one overwrites the first one. People used to lose data doing what you are trying to do but now the system recognizes it and gives a 213 abend. PDSE may support concurrent updates (not sure). Serialization means ENQ, but the simple way to do that is DISP=OLD on the whole data set. DISP=SHR will always result in a 213 for the 2nd processes trying to open for write. if you must have jobs updating the same PDS, use your own ENQ scheme or use ISPF services to do the writes since it already has serialization built in. Suggest you use the same scheme ISPF uses (see ISPF books for more info - it is probably there somewhere) |
|
Back to top |
|
|
|