Example 1: Defining global zone DDDEFs for cataloged data sets

For this example, assume you want to define a DDDEF entry for the SMPPTS and SMPLOG. The data set names are SYS1.SMPPTS and SYS1.GLOBAL.SMPLOG, and both data sets are cataloged on the system that you are running on. Here is an example of how to define the DDDEF entries:
SET      BDY(GLOBAL)        /* Set to global zone.      */.
UCLIN                       /*                          */.
ADD      DDDEF(SMPPTS)      /* DDDEF for PTS.           */
         DA(SYS1.SMPPTS)    /* Data set is cataloged.   */
         OLD                /* DISP=OLD.                */
ADD      DDDEF(SMPLOG  )    /* DDDEF for LOG.           */
         DA(SYS1.SMPLOG)    /* Data set is cataloged.   */
         MOD                /* DISP=MOD.                */.
ENDUCL                      /*                          */.