HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Location counter and length limits

HLASM Language Reference
SC26-4940-06

The assembler also maintains a length counter for each individually relocatable component of the program: executable and reference control sections, elements, and parts.

If any location counter overflows its maximum value, High Level Assembler issues the severe error message:
      ASMA039S Location counter error
and continues assembling with the location counter value "wrapping" around to zero.

The length of a section, element, or part cannot exceed the maximum allowed length described above. If the length counter reaches this maximum value, it stays fixed at that value without an error condition or error message. Exceeding the length counter causes overflow of the location counter, producing the ASMA039S message.

The location counter setting is relative to the beginning of the location it represents, and the length counter represents the cumulative length of the control section. This means that the length counter is nearly always greater than the location counter, and can exceed its maximum value before the location counter. Even if the location counter overflows, the length counter value might be correct, and reassembling with the NOTHREAD option might avoid the location counter overflow condition.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014