Cobol Question:
Download Questions PDF

What is PERFORM what is VARYING?

Answer:

The PERFORM statement is a PROCEDURE DIVISION statement which transfers control to one or more specified procedures and controls as specified the number of times the procedures are executed. After execution of the specified procedures is completed (i.e., for the appropriate number of times or until some specified condition is met), control is transferred to the next executable statement following the PERFORM statement. There are 5 types of PERFORM statements

* a) Basic PERFORM
* b) PERFORM TIMES
* c) PERFORM UNTIL
* d) PERFORM VARYING
* e) IN-LINE PERFORM

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL?How do you differentiate between COBOL and COBOL-II?