The TCB and JSCB control blocks are in the private area of the ASID - therefore 
any external monitoring application will have to use cross-memory techniques to 
access their contents.

I do not think that there is an easy way to determine in non-xmemory mode if an 
ASID has been started under MSTR or JES - however I would suggest that you 
examine/compare the contents of the JSAB control block for an ASID that has 
issued the "Request JOBID" SSI call (eg Netview) against a ASID that did start 
under the JES subsystem - maybe there are fields that are not populated for the 
first case?

JSAB can be located :   ASCBAASB-->ASSB-->ASSBJSAB-->JSAB
JSAB mapped by    :   IAZJSAB in SYS1.MACLIB 
 
 


Rob Scott
Developer
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.2305 
Email: [email protected] 
Web: www.rocketsoftware.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Gerhard Postpischil
Sent: 20 May 2009 08:42
To: [email protected]
Subject: Re: Detect if STC is running under sub=mstr

Luc Martens (KBC) wrote:
> e.g. NETVIEW: is started under SUB=MSTR but is getting a jobid after 
> JES2 is started. Checking if you have a jobid or not is not a good solution.

For jobs running under a subsystem, I get the job step TCB, then TCBJSCB, then 
JSCBSSIB. Field SSIBSSNM has the controlling subsystem name (and SSIBSUSE 
points to the SJB). I don't recall whether I ever looked at this for a SUB=MSTR 
start job, but all the control blocks are standard, and you should be able to 
run a quick assembly to get the offsets and values for REXX coding.


Gerhard Postpischil
Bradford, VT

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

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