I suppose so, but you really don't want to do that. You are being stopped from 
a very good likelihood of corrupting the file. 

DISP OLD is appropriate unless you have some other exclusivity mechanism to 
serialize updates. 

I'm not sure, but I think your REXX would completely destroy the target PDS by 
converting it to sequential unless 'dsanme' included a member name. 

As others note, ISPF edit is a very sophisticated file manager that protects 
down to the member level. I'd second the suggestions to use ISPF EDIT services 
to accomplish the mission.      

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Maria Brown
Sent: Wednesday, February 18, 2009 12:13 PM
To: [email protected]
Subject: EXECIO

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?

I can manually edit and save the file without any problems while the dataset is 
in use by the app.

"ALLOC F(INDD) da("dsnname")"              
"execio * DISKW indd (STEM LINES. FINIS"   
"Free File(indd)"                          

----------------------------------------------------------------------
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
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.

----------------------------------------------------------------------
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

Reply via email to