How to determine location of COBOL special register variables
Dan_Z 27000582KQ Visits (2519)
With Enterprise COBOL for z/OS V5.1.1, the LIST option output in the compiler listing is enhanced to include a new special register table. There you can find the location information for all the COBOL special register variables.
The offset to the table can be found in the second entry of the PPA3, and the offset is relative to the starting address of the PPA3.The special register table format is similar with that of the base locator table.
The following example further explains the special register table:
Each entry in the special register table consists of the following items:
At the end of the special register table, there's a null byte indicating that you have reached the end of the table.