I had similar interests not long ago, and got some direction with CHKTRID
from Binyamin Dissen and Rob Scott:

On Fri, Dec 8, 2023 at 8:12 AM Rob Scott <rsc...@rocketsoftware.com> wrote:

>
>
> If the OP is willing to call an interface instead, the use ERBSMFI and get
> SMF79-1 records and look at the values in R791TAS.
>
> CHKTRID is a good place to start if you are trying to work this out from
> control blocks yourself, but there are a few nuances to consider (assuming
> you have the ASCB address for the ASID) :
>
> (o) If ASCBJBNI is non-zero, you need to get the CSCB from CHCSCBP (based
> CHNAME on ASCBJBNI)
> (o) If ASCBJBNI is zero, use ASCBCSCB
> (o) If CHJOBID, then you might have a JOB, but it will be STC if ASCBJBNI=0
> (o) CHTSID = TSU
> (o) Otherwise you have an STC, but then you need to identity ASCH, OMVS
> and INITs from jobnames
>
> If you then want to accurately populate fields like “STEPNAME” and
> “PROCSTEP”  you need to be careful as they can come from different places
> depending on the logic above.
>
> It is a bit messy TBH.
>
> Also bear in mind that ASID(0001) is called “SYSLOG” 😊
>
> Rob Scott
> Rocket Software
>
>

On Wed, Aug 7, 2024 at 11:09 AM Lindy Mayfield <
000005a2ba9c925b-dmarc-requ...@listserv.ua.edu> wrote:

> For the job id on my system, the name starts STC* for started task, TSU*
> for TSO user, JOB* for batch (and sometimes initiatiors), and there seems
> to be an 'other' category.  But I noticed on another system that the jobid
> names are different.   Out of curiosity, where is that naming defined?  I
> didn't find it in the usual places.
>
> Since the naming convention can change, is there another way to find out
> the job type, STC, JOB, TSU, etc, in a control block somewhere?  My program
> is already going through all the ASCB and related control blocks, so that
> would be the best place to look for that info.
>
> Thanks for your help. 🙂
>
> Kind regards,
> Lindy
>
>
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to