In a prior life, I wrote a user diagnose routine that managed the segment. Only selected users were authorized to issue the diagnose code (diagnose routine had a compiled-in table of authorized users). All users were allowed to SEGMENT LOAD the segment read only. Extracting data from the segment, as I recall, was done with REXX STORAGE() method.

Richard Corak

Sorry for jumping into this so late, but I wouldn't rule out shared
segments and would tend either to go that way or dataspaces.  Bill
Stephens was incorrect - you can define a segment as shared writable,
I've seen a couple of apps built that way.  If you have more than one
writer you'll need a locking mechanism (one I've seen used the first
doubleword of the segment as a compare&swap lock) as well as a mechanism
for overriding the lock in case its holder crashes.  As for Bill's other
concern it's your segment, you can define it wherever you like and use
diag64 services for finding/attaching it.

Reply via email to