Actually, ASCBJBNS is not zero for an initiated job. It points to the name of the initiator started task - INIT for a JES2 initiator or BPXAS for OMVS work. If ASCBJBNI is not zero, then it points to the job running on the initiator. So, the initiator started task name could also be used to determine what type of work it is.
Bill On Thu, 10 May 2007 11:30:25 -0400, Bielskie, Stephen <[EMAIL PROTECTED]> wrote: >I have a REXX program that scans through the ASCBs to collect information about active STCs, JOBs, etc. It appears the address of a started task name is located in the storage pointed to by the ASCBJBNS field. If ASCBJBNS is zero, then I check to see if it is an initiated job by reading in ASCBJBNI field. I guess since the OMVS subtask (such as INETD) are run under BPX initiators, they are considered initiated jobs and the name of the task is in the ASCBJBNI field. > >The question is: >Does anyone know a way to tell if an initiated job is an OMVS task or a batch job, programmatically? The ASCB doesn't seem to contain that information. > >Thanks, >Steve > > >Stephen Bielskie >Assistant Vice President >CIO - TIS - Mainframe Princeton >KITF > >CREDIT SUISSE > >Princeton, NJ >Telephone : (609) 243-0711 >Email :[EMAIL PROTECTED] > > > > > ============================================================================= >Please access the attached hyperlink for an important electronic communications disclaimer: > >http://www.credit-suisse.com/legal/en/disclaimer_email_ib.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