IF ELSE statement is used when a certain set of statements needed to be executed by two conditions. This statement is mainly used to execute the condition-specific code.In IF-ELSE, the block of statements will be executed if the specified condition is true. If the condition is false, the ...
Evaluateis an alternative to the IF condition. To give multiple conditions, you need to use IF conditions. But using the Evaluatewith ALSO you can simplify the code. The Evaluate with ALSO equals the AND condition. Evaluate with ALSO With the Evaluate, you can test two or more conditions us...
This variant of the EVALUATE statement is also similar to the previous examples. The code uses the “THRU” keyword when specifying the conditions within the WHEN clause of the EVALUATE statement to indicate a range of values for the variable that is being evaluated. In this case, we have th...
4.6 CLOSE Statement 4.7 COMPUTE Statement 4.8 CONTINUE Statement 4.9 DELETE Statement 4.10 DISPLAY Statement 4.11 DIVIDE Statement 4.12 ENTER Statement 4.13 EVALUATE Statement 4.14 EXIT Statement 4.15 EXIT PROGRAM Statement 4.16 GOBACK Statement 4.17 GO TO Statement 4.18 IF Statement 4.19 INITIALIZE Stateme...
conditions...274 Statement categories...277 Imperative statements...
– PROCESS statement option PGMINFO This option allows the user to request that PCML be added to the module, and can be specified as PGMINFO(PCML MODULE). If the user had requested the PCML be added to a streamfile from the create command, the PCML will be added to both the module...
This clause forces the COBOL converter to add an "END DECLARE" statement if it does not exist to the previous "DECLARE" satement. Note: This configuration does not work with nested "DECLARE" and "END DECLARE" statements. copy-renaming Configuration File...
That is, if you were to try to reproduce this sample, while not respecting case-sensitivity, with a statement CALL "SAY" using HELLO, WORLD., then when you linked the two object files together into the executable "hello.exe", you would receive an "Unresolved external symbol" error at ...
Once he perform statement is initiated any changes to the id-1 will have no effect on the number of times the Para is to be executed. If identifier-1 is zero or a negative number at the time the PERFORM statement is initiated, control passes to the statement following the PERFORM statemen...
(i.e., If SELF is the BEHAVIOR of class, so is SELFCLASS.) SUPER References the object on which the current method is executing. May be used in the Procedure Division of a method. May be the object used to invoke a method with the INVOKE statement. References the object that was ...