Example 3

Operation: Combine and execute several object and load modules with differing AMODE and RMODE attributes. The new load module should execute in 31-bit addressing mode and be loaded anywhere in storage.

Known:
  • The name of the main routine, a load module in 24-bit addressing mode: MY.PROG.LOAD(MAIN)
  • The names of two subroutines, which are updated with changes before loading; both are AMODE(31) and RMODE(ANY): MY.SUB1.OBJ, MY.SUB2.OBJ
load (sub1 sub2 'my.prog.load(main)') print (*) amode(31)
rmode(any)