Savor, Tom wrote:
I have an issue where we a PDS library where many different TSO users
are in ISPF edit and are making coding changes in this PDS library.
Maybe 50 different folks are in ISPF edit (Option 2) and coding away all
day long.  When programmers are completed coding and code is ready
to be promoted....they EDIT a ROLL (or available) member called $ROLL.
Now threw out the day, we have BATCH jobs that physically promote
code and $ROLL entries from TEST library to QA library.
Now the problem:
How can BATCH job ensure that no one is editing $ROLL member ??  I don't
want to set JCL to DISP=OLD, because that would lock entire library.
So how can a member be locked in BATCH from ISPF edit ??  Is this
possible ?? I'm trying to do this in BATCH assembler program.

Your program should use existing ISPF serialization mechanisms. A SPFEDIT SCOPE=SYSTEMS ENQ tells you if a data set or member is currently being edited; a SPFEDIT SCOPE=SYSTEMS RESERVE is used to serialize updates to the target library for data integrity. The latter might not be necessary if the target library is a PDSE (ISPF uses it in all cases). But, if it's a PDS, failure to properly serialize for update can lead to unpredictable (but, predictably bad) results!

You might consider looking into using SCLM for source control. Should be better/cleaner than doing $ROLL "threw out" [sic] the day...

--
Edward E Jaffe
Phoenix Software International, Inc
5200 W Century Blvd, Suite 800
Los Angeles, CA 90045
310-338-0400 x318
[email protected]
http://www.phoenixsoftware.com/

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