Example 2: Changing the link-edit attributes of an LMOD

As in the previous example, the correct way to change any part of a LMOD entry is through the use of JCLIN. However, at times, assuming a knowledge of SMP/E and UCL processing, you may decide to use UCL to do it. For this example, assume you have a load module, LMOD99, with link-edit attributes of RENT REUS, and that you have made changes so that it is no longer reentrant but is now authorized and will fill uninitialized areas. This change can be made as follows:
SET      BDY(TGT1)          /* Set to target zone.      */.
UCLIN                       /*                          */.
DEL      LMOD(LMOD99)       /* Existing LMOD entry.     */
         RENT.              /* Delete RENT attribute.   */
ADD      LMOD(LMOD99)       /* Existing LMOD entry.     */
         AC=1 FILL(00)      /* Add authorization,       */
                            /*  and fill uninitialized  */
                            /*  areas to hex byte 00.   */.
ENDUCL                      /*                          */.