Previous Topic: DISPLAY CommandNext Topic: ENDIF Statement


ELSE Statement

The ELSE statement is used within an IFSYS/ENDIF block to direct commands to all systems that do not match the system names that are specified on the IFSYS statement.

Syntax

ELSE

No parameters qualify the ELSE statement. However, follow the ELSE statement by a command or command block that is executed.

Note: You can specify this statement in the CA-L‑Serv parameter data set.

For information about directing commands or statements to particular systems, see CA-L-Server administrating topics.

Example

To execute an ATTACH FILESERVER SERVERTYPE(HOST) command on system SYS01 and to execute an ATTACH FILESERVER SERVERTYPE(REMOTE) on all other systems, specify these statements in the CA-L‑Serv partitioned data set:

IFSYS SYS01
   ATTACH FILESERVER SERVERTYPE(HOST)
 ELSE
   ATTACH FILESERVER SERVERTYPE(REMOTE)
 ENDIF