Steps for finding external RENT variables

Before you begin: You need to know the WSA. To find this information see Locating the Writable Static Area (WSA). For this procedure's example, the address of writable static is X'02D66E40'.

Perform the following steps to find external RENT variables:

  1. Find the offset of the external variable in the Prelinker Writable Static Map. In the example shown in Figure 1, the offset for DFHEIPTR is X'28'.
    Figure 1. Writable static map produced by prelinker
    ========================================================================
    |                         Writable Static Map                          |
    ========================================================================
    
      OFFSET    LENGTH  FILE ID  INPUT NAME
    
           0         1   00001   DFHC0011
           4         1   00001   DFHC0010
           8         2   00001   DFHDUMMY
           C         2   00001   DFHB0025
          10         2   00001   DFHB0024
          14         2   00001   DFHB0023
          18         2   00001   DFHB0022
          1C         2   00001   DFHB0021
          20         2   00001   DFHB0020
          24         2   00001   DFHEIB0
          28         4   00001   DFHEIPTR
          2C         4   00001   DFHCP011
          30         4   00001   DFHCP010
          34         4   00001   DFHBP025
          38         4   00001   DFHBP024
          3C         4   00001   DFHBP023
          40         4   00001   DFHBP022
          44         4   00001   DFHBP021
          48         4   00001   DFHBP020
          4C         4   00001   DFHEICB
          50         4   00001   DFHEID0
          54         4   00001   DFHLDVER
          58       420   00001   @STATIC
  2. Add the offset of the external variable to the address of writable static, as shown below.
    X'02D66E40' + X'28' = X'2D66E68'

When you are done, you have the address of the value of the external variable in the Language Environment dump.