IF conditionally processes an instruction or group of instructions depending on theevaluation of the expression.The expression is evaluated and must result in 0 or 1.The instruction after the THEN is processed only if the result is 1 (true). If you specify an ELSE, the instruction after the ELSE is processed only if the result of the evaluation is 0 (false).
Example:if answer=’YES’ then say ’OK!’
Remember that if the ELSE clause is on the same line as the last clause of the THEN part, you need a semicolon before the ELSE.
Example:if answer=’YES’ then say ’OK!’; else say ’Why not?’
The ELSE binds to the nearest IF at the same level.You can use the NOP instruction toeliminate errors and possible confusion when IF constructs are nested, as in the following example.
Example:If answer = ’YES’ Then
IBM-REXX Related Interview Questions
|IBM - VSAM Interview Questions||IBM DB2 Interview Questions|
|COBOL Interview Questions||IBM-JCL Interview Questions|
|IBM Mainframe Interview Questions||IBM Cloud Computing Infrastructure Architect V1 Interview Questions|
|IBM WebSphere MQ Interview Questions||IBM DataPower Interview Questions|
|Unix/Linux Interview Questions||Ibm Websphere Message Broker Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.