Re: Allocating PC numbers

2022-06-30 Thread Peter Relson
If you aren't using AXSET you certainly don't need AXRES.
And many use AXSET with an AX of 1 (a special value), and don't use AXRES.

Peter Relson
z/OS Core Technology Design


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


Re: Allocating PC numbers

2022-06-29 Thread Colin Paice
Perhaps have a global name token - so applications can find it
Colin

On Wed, 29 Jun 2022 at 20:22, Ngan, Robert (DXC Luxoft) 
wrote:

> Use the LXRES service.
> Then all you need to do is figure out how you want to "publish" your PC
> number to its potential users.
>
> Robert Ngan
> DXC Luxoft
>
> -Original Message-
> Date:Tue, 28 Jun 2022 16:11:37 -0400
> From:    Tony Thigpen 
> Subject: Allocating PC numbers
>
> When on z/OS and you want to create a PC routine, 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?
>
> Tony Thigpen
>
>
>
>
> --
> 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


Re: Allocating PC numbers

2022-06-29 Thread Ngan, Robert (DXC Luxoft)
Use the LXRES service.
Then all you need to do is figure out how you want to "publish" your PC number 
to its potential users.

Robert Ngan
DXC Luxoft

-Original Message-
Date:Tue, 28 Jun 2022 16:11:37 -0400
From:Tony Thigpen 
Subject: Allocating PC numbers

When on z/OS and you want to create a PC routine, 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?

Tony Thigpen




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


Re: Allocating PC numbers

2022-06-29 Thread Tony Thigpen

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:


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?


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 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


Re: Allocating PC numbers

2022-06-29 Thread Peter Relson

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?


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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Allocating PC numbers

2022-06-28 Thread Ed Jaffe

On 6/28/2022 1:11 PM, Tony Thigpen wrote:
When on z/OS and you want to create a PC routine, 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?


We normally start with '1' and increment by '1' for each new service we 
add. It's possible to leave gaps if you want to create ranges for more 
complex products.


Since the LX gets merged in, the numbers are system unique.

--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://www.phoenixsoftware.com/



This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.

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


Allocating PC numbers

2022-06-28 Thread Tony Thigpen
When on z/OS and you want to create a PC routine, 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?


Tony Thigpen

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