<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
