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

What is Serial Access to the PDS.


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

Superior Member


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

PostPosted: Mon Mar 02, 2009 2:54 pm
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
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

Superior Member


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

PostPosted: Mon Mar 02, 2009 3:42 pm
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
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

Superior Member


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

PostPosted: Mon Mar 02, 2009 3:55 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Mar 02, 2009 4:34 pm
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

Superior Member


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

PostPosted: Mon Mar 02, 2009 5:14 pm
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
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Mar 02, 2009 8:57 pm
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: 400
Location: Mumbai

PostPosted: Tue Mar 03, 2009 12:54 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts access the last host command CLIST & REXX 2
No new posts CICS Access to RACF CICS 2
No new posts Access library name in REXX CLIST & REXX 6
Search our Forums:

Back to Top