Victor,

That may work if your load module consists of only a single csect. If you start building multi-csect load modules, then it won't work at all, since your method can provide only the length of that single csect.

If you want to find the length of a multi-csect load module, you can do so using DXD statements placed at the end of every csect, and then a q-con to reference the cumulative length of all csects added together. (I'll leave it to you to research the missing details.)

Dave Cole







At 12/9/2015 11:47 AM, Victor Gil wrote:

Frank,

I think it's MUCH easier to stick the load module length right inside the module than obtain it from the system.

All you need is to add something like this at a KNOWN location and re-assemble it

L_TAB   DC    A(TAB_END-TAB_BEG)       - TOTAL TABLE LENGTH

HTH,
-Victor-

Reply via email to