View previous topic :: View next topic
|
Author |
Message |
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
HI,
I was just experimenting with control blocks fields of some data area. Till now my understanding is limited to few data areas namely psa, cvt , jesct ,sscvt as the can be easily found on net. Now I have written this common code to identify the subsystem on my mainframe . I am able to generate but out of them some are inactive. Is it possible to find which subsystems are active and inactive.
the code as follows :
Code: |
flccvt = 16 /* control block
cvt = c2d(storage(d2x(flccvt),4))/* cvt c
jesct = c2d(storage(d2x(cvt+296),4))
sscvt = c2d(storage(d2x(jesct+24),4))
subsys = storage(d2x(sscvt+8),4)
subsysusage = storage(d2x(sscvt+20),4)
say c2x(subsysusage)
do until( sscvt =0 )
say subsys
sscvt = c2d(storage(d2x(sscvt+4),4))
subsys = storage(d2x(sscvt+8),4)
end
|
And Is it also possible to know what type of subsystem it is. Like i want to identify all DB2 that are active .
Thanks in advance.
Regards,
Manoj K Jadwani |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You are simplfying too much ?
a subsytem from a control block point of view is just an <anchor> point and a <messaging>/<signaling> interface
and is not in any way related to the running status of <something>
a transient subsystem properly initialized for example is there,
waiting for somebody to request its services,
but it will not show up in a sdsf DA like a DB2 instance running,
note I said instance , not subsystem
meditate here for better insight
publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.ieaf200%2Fconir.htm |
|
Back to top |
|
|
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
Thanks for the insight link :-)
Really seems like I have too much simplified. Now need to rephrase my question from subsystem def i need to check the active instance of DB2.
Like following is the snap of output I got from the code
DB2V
DB2A
VRLM
ARLM
DB2C
CRLM
AXR
out of those DB2V and DB2A instances are up and DB2C is down. So can I like check from any of the initialising loadmodules loaded somewhere in another control block and identify it is up ? (just my thinking )
Regards,
Manoj K Jadwani |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if You know the names of the procedure name, no need to bother the SSN
just scan the ascb chain to finf out if the relevant procedures are started or not
what are You trying to find out ?
the exercise is useful for learning how to chase control blocks,
just checking if a <subsystem> like You call it is <active> tells nothing from an availabillty point of view
to measure the availability of an application the whole chain of component must be <available> not just the top address space |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
So can I like check from any of the initialising loadmodules loaded somewhere in another control block and identify it is up ? (just my thinking ) |
Doubtful. The information you seek MIGHT be in control block (I do not know) but such control blocks are likely to be in a different address space. You only have access to your own storage, plus some common system areas. |
|
Back to top |
|
|
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
Thanks Enrico :-)
Regards,
Manoj K Jadwani |
|
Back to top |
|
|
|