Steps for finding NORENT static variables
Before you begin: You need to know the name and address of the static storage area. To find this information see Steps for finding the static storage area. For this procedure's example, the static storage area is called STATSTOR and has an address of X'02D66E40'.
Perform the following steps to find external RENT variables:
- Find the offset of the static variable in the partial storage
offset compiler listing. As shown in the following example, the offset
is 96 (X'60').
sa0 66-0:66 Class = static, Location = STATSTOR +96, Length = 4 - Add the offset to the base address of static variables, as shown
in the following example:
X'2D66E40' + X'60' = X'2D66EA0'
When you are done, you have the address of the value of the static variable in the Language Environment dump.
Figure 1 shows how to locate NORENT C static variables by adding the Static Storage Area CSECT address to the variable offset.
Figure 1. Location
of NORENT static variable in storage
