Generated from C.65.00 /SYSADMIN/PUB/MYCICAT last modified on Sun Aug 29 15:08:37 2004
Back to Main Index
Provides an alternate execution sequence within an IF statement.
The ELSE command is used only in conjunction with the IF and ELSEIF commands. The IF command is used with the ENDIF command, and optionally with the ELSE command, to control the execution of a job. The IF, ENDIF, and optional ELSE and ELSEIF commands constitute an IF block. A logical expression is evaluated, and if true, the IF block is executed; if false, the ELSE block (if one exists) is executed. This command may be issued from a session, job, a program, or in BREAK. Pressing [Break] has no effect on this command.
The following job listing illustrates the use of ELSE command. !CONTINUE !PASXL MYPROG,MYUSL !IF JCW>=FATAL THEN ! TELL MAC.TECHPUBS;COMPILE FAILED !ELSE ! TELL MAC.TECHPUBS;COMPILE COMPLETED !ENDIF
Commands: DELETEVAR, ELSEIF, ENDIF, IF, SETJCW, SHOWJCW, SETVAR, SHOWVAR Back to Main Index