Thursday, November 12, 2015

[IBM High Level Assembler Language for z System-HLASM] No Active Using - ASMA307E

If you are here because you have hit ASMA307E error, then I suggest to generate a listing file, by using HLASM option LIST.  Study the section of the assembler source that has been identified as not having "Active Using".  If you don't see a meaningful "Active Loc" then it could be due to discontinuity introduced in your CSECT.  In my case a DSECT caused the section I want addressable to become orphaned, OR it could be due to code_size being greater than 4K between the USING statement and the symbol being addressed.

  • Solution_For_Discontinuity:  Move that section to the CSECT with Using statement, OR insert the CSECT statement before the orphaned section.



Example:





  • Solution_For_Code_Size_GT_4K: check out Base Register in assembler (1), (2), and (3) at Jens Elbaek Blog, System Z Assembler

No comments: