z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The Null ELSE format

z/OS TSO/E CLISTs
SA32-0978-00

When a specific ELSE action is not required, you can code a null ELSE clause in one of two ways: omit the ELSE clause entirely or just code ELSE without operands (an action). The following IF-THEN-ELSE sequence omits the ELSE entirely:
IF &PRINT=YES THEN + 
 DO
  WRITE We are printing the data set as you requested.
  printds da(&dsn)
 END
You can also code the following:
IF &PRINT=YES THEN + 
 DO
  WRITE We are printing the data set as you requested.
  printds da(&dsn)
 END
ELSE

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014