z/OS DFSMSdss Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Continuation rules for IF-THEN-ELSE command sequencing

z/OS DFSMSdss Storage Administration
SC23-6868-01

The following continuation rules apply for the IF-THEN-ELSE command sequencing.

  1. IF (condition) must be followed by a THEN on the same line or a continuation of that line.

    Examples:

    IF LASTCC = 0 THEN COPYDUMP ...
    or
    IF LASTCC = 0   -
           THEN COPYDUMP ...
  2. THEN must be followed by a command or DO on the same line or a continuation of that line.
    Examples:
    IF LASTCC = 0   -
                THEN       -
                  COPYDUMP ...
    or
    IF LASTCC = 0    -
                THEN DO
                     COPYDUMP ...
                     PRINT ...
                    END
  3. ELSE must be the first word on a line and no continuation character should be used on the preceding line.
    Example:
    IF LASTCC = 0    -
           THEN
                   COPYDUMP ...
             ELSE        -
                 PRINT ...

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014