The answers given so far imply that you know the names of the primary/secondary subsystems and from that determine under which you run. As far as I remember, there is a pointer to *the* subsystem, which is the primary subsystem. I can't dig up where that pointer is.
Kees -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of John Szura Sent: 07 February 2020 21:37 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Determine if running under Secondary Subsystem Is there a way to tell if you application is running under a Secondary JES? We have common code that is used in several products that needs to check the JES it is running under. If I look at the chain of SSCTs it will only tell me there are more than one JES running but I can't find a way to determine under which the application started. j -- John Szura Lead Mainframe Product Developer Tone Software Corp. +1(714)507-2354 IMPORTANT NOTICE: This is a private message. The information in this email (including any attachments) is confidential and proprietary to Tone Software Corporation, and is provided solely for the use of the individual or entity to which it is addressed. Any review, reliance upon, printing, distribution, or forwarding without express permission of its sender is strictly prohibited. If you are not its intended recipient, please immediately delete this email without copying and kindly advise me by email of the mistaken delivery. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ******************************************************** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ******************************************************** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN