On Sun, 29 Mar 2009 09:07:56 -0700, Edward Jaffe wrote:
>
>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!
>
We use:
'lminit dataid(TOID) dataset('''ToDSN''') enq(SHRW)'
'lmcopy fromid('TEMPID') todataid('TOID') tomem('ToMem') replace trunc'
if RC=0 then 'lmmstats dataid('TOID') member('ToMem')'
The OP might find the sequence:
LMOPEN
LMPUT, ...
LMCLOSE
... more suitable than LMCOPY.
Ed is free to chastise me for omitting the LMFREE; I'll be
in trouble if future ISPF enhancements let the data ID
association outlast the job step.
For information on LMINIT, LMCOPY, et. al. See:
Interactive System Productivity Facility (ISPF)
Services Guide
z/OS Version 1 Release 10.0
Document Number SC34-4819-08
See also:
Interactive System Productivity Facility (ISPF)
Planning and Customizing
z/OS Version 1 Release 10.0
Document Number GC34-4814-07
for a discussion of the technical details.
>You might consider looking into using SCLM for source control. Should be
>better/cleaner than doing $ROLL "threw out" [sic] the day...
>
On Solaris, we use Telelogic (an IBM company) CM Synergy for such
purposes. I wonder whether IBM plans to extend CM Synergy
availability to z/OS Unix?
-- gil
----------------------------------------------------------------------
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