Example 2: Modifying an FMIDSET entry

Once an FMIDSET has been defined, it can be modified as new function SYSMODs are installed or as existing function SYSMODs are replaced. For example, starting with the FMIDSET from the previous example, assume you install a new feature, JXX1124, that deletes JXX1121, and that you want to modify the FMIDSET definition. You can do this as follows:
SET      BDY(GLOBAL)        /* FMIDSETs only in global. */.
UCLIN                       /*                          */.
REP      FMIDSET(XXSET)     /* Define FMIDSET name.     */
         FMID(FXX1102       /* Define function SYSMODs. */
                            /* JXX1121 left out.        */
              JXX1122       /*                          */
              JXX1123       /*                          */
              JXX1124)      /* JXX1124 added.           */
                            /*                          */.
ENDUCL                      /*                          */.
You can also do the following:
SET      BDY(GLOBAL)        /* FMIDSETs only in global. */.
UCLIN                       /*                          */.
DEL      FMIDSET(XXSET)     /* Define FMIDSET name.     */
         FMID(JXX1121)      /* Delete JXX1121 from set. */
                            /*                          */.
ADD      FMIDSET(XXSET)     /* Define FMIDSET name.     */
         FMID(JXX1124)      /* Add new FMID.            */
                            /*                          */.
ENDUCL                      /*                          */.

The result in both cases is the same. The choice of which method to use most likely depends on the number of FMIDs defined in the FMIDSET.