Obtaining UCB addresses for a specified device number

You can use the UCBLOOK macro to obtain actual (not captured) addresses of the following segments for a UCB:
The input UCBs can be associated with: IBM® recommends using the UCBLOOK macro to obtain UCB addresses.

The PIN parameter on the UCBLOOK macro allows the caller to pin the UCB whose address is to be obtained. See Pinning and unpinning UCBs for more information on pinning and unpinning.

The IOSLOOK macro is restricted to below 16 megabyte UCBs for static or installation-static devices with 3-digit device numbers. Like UCBLOOK, IOSLOOK returns the UCB address associated with a given device number. However, UCBLOOK has several advantages that IOSLOOK does not: