Thanks Peter.
I have been running my test program (that I got from somewhere) and
realized that I was off-base with my understanding.
I am also coming to understand that some of the stuff done by the
program was not needed or incorrect, but still worked.
For instance, it does an AXRES, followed by an LXRES and ETDEF. I don't
see any reason for the AXRES. Maybe I am still not reading everything right.
Tony Thigpen
Peter Relson wrote on 6/29/22 07:27:
<snip>
how do you determine
what PC number the new routine is going to use? Is there a list of
'used' ones somewhere? Are, do you do some sort of loop checking to see
what is free?
</snip>
I'd answer "no, not at all like that".
You (the PC-owner-to-be) have to have reserved a linkage index (LX, via LXRES). The LX
defines the "left part" of the PC number.
You define/create the entry table and associate it with the LX (ETDEF, ETCRE, ETCON). The Nth entry
(0-origin) in the entry table would correspond to a PC number with N as the "right part".
N is the "Entry Index" (EX).
A number is "free" if your entry table does not have enough entries to reach
that number.
The extended addressability guide is your friend.
Peter Relson
z/OS Core Technology Design
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN