Cobol Question:

What is PERFORM what is VARYING?

Tweet Share WhatsApp

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 PDF Read All 110 Cobol Questions
Previous QuestionNext Question
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL?How do you differentiate between COBOL and COBOL-II?