ASCBXTCB->TCBJSTCB->TCBRBP->RBCDE->CDENAME 

Sent from my iPhone

> On Mar 6, 2014, at 11:18 PM, Donald Russell <russell....@gmail.com> wrote:
> 
> I'm writing some assembler code and need to get the name of the currently
> running load module, but where is that? I thought it may have been in the
> tcb, but I don't see anything in ikjtcb that looks like a module name. :-(
> Maybe some other block pointed to from the tcb?
> 
> I have no idea which control block has that, so I need some clues how to
> find my way to it....
> 
> and... I also need to look in the tiot to check which dd names are in the
> job step
> 
> Am I reading the tiot macro correctly? There's a 1 byte length of each
> entry, and the tiot is as large as needed for all DD names in the job step?
> (I thought it was a fixed size, and then had some sort of extension block
> as needed, but I may be getting mixed up with JFCB or something)
> 
> So, would this be correct?
> 
> 
>         lrl   r2,@tiot
>         using tiot1,r2
> tiotLoop ds 0h
>         cli   tioelngh,0              any more tiot entries?
>         je    endTiotScan                go if none
>      ...
>         sr   r1,r1
>         ic   r1,tioelngh
>         ar   r2,r1                      point to next item
>         j     tiotLoop
> endTiotScan ds 0h
> 
> 
> Thanks very much..... it's been a good number of years since I did mvs
> programming at this level.
> 
> Donald Russell
> 
> ----------------------------------------------------------------------
> 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