On 12/20/2011 3:24 PM, Yanick Jacques wrote:
Can someone can tell me more about what an SRB, ASID and ASCB is. How can I get an ASCB and ASID from one adress space.
1) Your issuing program must be authorized 2) In MVS-zOS, the system creates a logical address space, where private addresses (your program and storage) are unique. The ASCB is the basic control block containing pointers and flags for your address space. The ASID is an ordinal assigned to keep track of the address spaces. 3) An SRB is a control block for a dispatchable unit of work, smaller than the usual PRB, SVRB, etc. 4) For changing data in another address space, you need to create the code, obtain storage in (E)CSA, build the SRB request (including the ASID of the target space), and schedule it. The SRB runs asynchronously, and it is usual to have it post an ECB when done. Your code should update storage only in the key of the target to avoid clobbering stuff elsewhere. I'm curious how you will find the necessary address(es) of the data you want to change? Also your code should have an FRR to recover from, or ignore, errors. 5) From your question, I would highly recommend that you read the Authorized Programming Services and matching Macro manuals, and ensure you have a sandbox to practice on; if you don't have a sandbox system, you might consider getting Hercules and MVS for your PC; while CICS isn't available, the basic support for SRBs and cross-memory is in the system. Gerhard Postpischil Bradford, VT
