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 is Serial Access to the PDS.

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

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 2:14 pm    Post subject: What is Serial Access to the PDS.
Reply with quote

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

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 2:54 pm    Post subject:
Reply with quote

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

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 3:26 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 3:42 pm    Post subject:
Reply with quote

If different members are getting updated, there should not be any problem (DISP=SHR)..did I misunderstood something... icon_confused.gif
Back to top
View user's profile Send private message
Ashish Mohan Sharma

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 3:53 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 3:55 pm    Post subject:
Reply with quote

Hi,

Please show the JCL you are using & the error message/s you get, when you try to update.
Back to top
View user's profile Send private message
Ashish Mohan Sharma

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 4:14 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 02, 2009 4:34 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 5:14 pm    Post subject:
Reply with quote

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..( icon_confused.gif ), try making the dataset a PDSE rather than a PDS. . .
Back to top
View user's profile Send private message
Ashish Mohan Sharma

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 6:38 pm    Post subject:
Reply with 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.


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

New User


Joined: 30 Sep 2008
Posts: 22
Location: Pune

PostPosted: Mon Mar 02, 2009 6:39 pm    Post subject:
Reply with quote

Thats what serialization I am asking about.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Mon Mar 02, 2009 8:57 pm    Post subject:
Reply with quote

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

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Tue Mar 03, 2009 12:54 am    Post subject: Reply to: What is Serial Access to the PDS.
Reply with quote

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
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 IMS DC screen Access sivasaras IMS DB/DC 3 Fri Nov 18, 2016 6:38 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts RACF profile access vasanthz All Other Mainframe Topics 11 Fri Sep 23, 2016 5:51 am
No new posts How to perform Digest Access Authenti... vasanthz All Other Mainframe Topics 0 Tue Mar 15, 2016 4:47 pm
No new posts Database access from COBOL amitmahalkar DB2 1 Wed Jan 27, 2016 11:33 am


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