Example

In this example, an output module, NEWMOD, is created. It is given an alias of TESTMOD, the residence mode for the module is ANY, and the addressing mode for both the main entry point, NEWMOD, and the true alias, TESTMOD, is 31. The addressing and residence modes allow the program to be loaded into 31-bit addressable virtual storage.
//SYSLMOD  DD  DSN=USER.TESTPROG,DISP=OLD
//SYSLIN   DD  *
           .
           .
           .
    MODE   AMODE(31),RMODE(ANY)
    ALIAS  TESTMOD
    NAME   NEWMOD
/*