On Wed, 18 Feb 2009 18:34:23 +0000, Ted MacNEIL <[email protected]> wrote:
>>I am writing to a partitioned dataset via the EXECIO command. >>The dataset is also currently in use by an active application, which causes my EXECIO command to fail with "DATA SET IS ALLOCATED TO ANOTHER JOB OR USER". >>Is there anway to get around this with execio? > >There is a reason to do this. >It's called data integrity. >You have been lucky with ISPF EDIT. >With a PDS, you can destroy a member if two users are updating the same library and different members. > I disagree with Ted that you've been "lucky" with ISPF edit since it does use an ENQ to protect on a member level basis. But that only works if everyone plays by those rules. Also there has been some extra protection for a *long* time that keeps two tasks from opening a PDS for output (IEC143I 213-30 abend). I'm sure the archives are filled with information about this sort of thing. Besides the "SHR" recommendation, the OP may want to consider using ISPF services to write to the PDS. Then they will be playing by the same rules as everyone else. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:[email protected] z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

