Example 23: Syntax Checking a Command Stream

This example shows how to syntax check IDCAMS commands. As long as you specify syntax checking, the commands are not executed and data is not modified.

Example 26 can be viewed as a logical follow-on to the previous examples.
   // JOB    EXAMPL26
   /* COMMANDS AND MACROS BOOK EXAMPLE
   // EXEC   IDCAMS,SIZE=AUTO,PARM='SYNCHK'
      DELEYE (TEST1) CL                       See Note 1
    DEFINE CLUATER         -                  See Note 1
           (NAME(TEST1)    -
           NUMBERED        -
           INDEXED)
   /*
   /&
   // JOB    EXAMPL26 2ND TRY
   // EXEC  IDCAMS,SIZE=AUTO,PARM='SYNCHK'    See Note 2
    DELETE  (TEST1) CL
    DEFINE  CLUSTER        -
            (NAME(TEST1)   -
            NUMBERED       -
            INDEXED)
   /*
   /&
   // JOB   EXAMPL26 3RD TRY
   // EXEC  IDCAMS,SIZE=AUTO,PARM='SYNCHK'    See Note 3
    DELETE  (TEST) CL
    DEFINE  CLUSTER        -
            (NAME(TEST1)   -
            INDEXED)
   /*
   /&